{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a new resource in a specific Copilot Space owned by a user.\nThe authenticated user must have write permissions on the space.\n\nThe following resource types are supported: `repository`, `github_file`, `free_text`, `github_issue`, `github_pull_request`.\nThe `uploaded_text_file` and `media_content` types are not supported via this endpoint.\n\nFor `github_file` resources, if a resource with the same repository, file path, and SHA already exists, the existing resource is returned with a `200` status.\n\nOAuth app tokens and personal access tokens (classic) need the `write: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":["resource_type","metadata"],"properties":{"resource_type":{"type":"string","enum":["repository","github_file","free_text","github_issue","github_pull_request"],"description":"The type of resource to create."},"metadata":{"type":"object","description":"Resource-specific metadata.","additionalProperties":true}},"examples":[{"resource_type":"free_text","metadata":{"name":"notes.txt","text":"Some helpful notes"}}]}},"required":["path","body"],"additionalProperties":false},"name":"Create a resource for a Copilot Space for a user","id":"github.copilot-spaces.create-resource-for-user","example":{"path":{"username":"example","space_number":1},"body":{"resource_type":"free_text","metadata":{"name":"notes.txt","text":"Some helpful notes"}}},"maxRequests":1,"summary":false}}