{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Adds a collaborator to a specific Copilot Space owned by a user. The authenticated user must be the owner of the space or have admin access to the space.\n\nTeam collaborators are not supported for user-owned Copilot Spaces.\n\nOAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"username":{"type":"string","description":"The handle for the GitHub user account."},"space_number":{"type":"integer","description":"The unique identifier of the Copilot Space."}},"required":["username","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 (must be `User` for user-owned spaces; `Team` will be rejected)."},"actor_identifier":{"type":"string","description":"The username of the collaborator. The numeric user ID 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 a Copilot Space for a user","id":"github.copilot-spaces.add-collaborator-for-user","example":{"path":{"username":"example","space_number":1},"body":{"actor_type":"User","actor_identifier":"octocat","role":"writer"}},"maxRequests":1,"summary":false}}