{"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 task by ID with its associated sessions\n\n**Fine-grained access tokens for \"Get a task by ID\"**\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* [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\nGitHub App installation access tokens are not supported for this endpoint.\n","properties":{"path":{"type":"object","properties":{"task_id":{"type":"string","description":"The unique identifier of the task."}},"required":["task_id"],"additionalProperties":false}},"required":["path"],"additionalProperties":false},"name":"Get a task by ID","id":"github.agent-tasks.get-task-by-id","example":{"path":{"task_id":"example"}},"maxRequests":1,"summary":false}}