{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"> [!NOTE]\n> This endpoint is in public preview and is subject to change.\n\nReturns a paginated list of automations for a repository, including shared\nautomations and personal automations created by the caller.\n`total_count` is the number of caller-visible automations matching the supplied\nfilters across all pages. Use the `type` field to distinguish personal and shared\nautomations.\n\nGitHub App installation access tokens can list shared automations.\nThe installation must belong to the repository owner and the token must have\n\"Agent tasks\" repository permissions (read). Personal automations require a user token.\n\nOAuth app tokens and personal access tokens (classic) need:\n\n* the `repo` scope for private or internal repositories\n* the `repo` scope or `public_repo` scope for public repositories\n\n**Fine-grained access tokens for \"List automations for a repository\"**\n\nThis endpoint works with the following fine-grained token types:\n\n* [GitHub App user access tokens](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app)\n* [GitHub App installation access tokens](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-an-installation-access-token-for-a-github-app)\n* [Fine-grained personal access tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token)\n\nThe fine-grained token must have the following permission set:\n\n* \"Agent tasks\" repository permissions (read)\n","properties":{"path":{"type":"object","properties":{"owner":{"type":"string","description":"The account owner of the repository. The name is not case sensitive."},"repo":{"type":"string","description":"The name of the repository. The name is not case sensitive."}},"required":["owner","repo"],"additionalProperties":false},"query":{"type":"object","properties":{"page":{"type":"integer","default":1,"minimum":1,"description":"The page number of the results to fetch."},"per_page":{"type":"integer","default":30,"minimum":1,"maximum":100,"description":"The number of results per page (max 100)."},"type":{"type":"string","enum":["personal","shared"],"description":"Filter automations by type. `personal` returns automations owned by their creator, `shared` returns automations owned by the repository. Omit to return both."}},"required":[],"additionalProperties":false}},"required":["path"],"additionalProperties":false},"name":"List automations for a repository","id":"github.agent-automations.list-repo-automations","example":{"path":{"owner":"octocat","repo":"hello-world"}},"maxRequests":1,"summary":false}}