{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Adds a collaborator (user or team) to a specific Copilot Space owned by an organization. The authenticated user must have appropriate permissions to manage collaborators.\n\n**Note:** When adding users as collaborators, they must already be members of the organization.\nWhen adding teams as collaborators, they must be defined in the organization.\n\nOAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.\n\nFine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."},"space_number":{"type":"integer","description":"The unique identifier of the Copilot Space."}},"required":["org","space_number"],"additionalProperties":false},"body":{"type":"object","required":["actor_type","actor_identifier","role"],"properties":{"actor_type":{"type":"string","enum":["User","Team"],"description":"The type of actor (user or team)."},"actor_identifier":{"type":"string","description":"The username (for users) or team slug (for teams). The numeric ID of a user or team is also accepted."},"role":{"type":"string","enum":["reader","writer","admin"],"description":"The role to grant to the collaborator."}},"examples":[{"actor_type":"User","actor_identifier":"octocat","role":"writer"}]}},"required":["path","body"],"additionalProperties":false},"name":"Add a collaborator to an organization Copilot Space","id":"github.copilot-spaces.add-collaborator-for-org","example":{"path":{"org":"example","space_number":1},"body":{"actor_type":"User","actor_identifier":"octocat","role":"writer"}},"maxRequests":1,"summary":false}}