{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a new Copilot Space owned by a user. Only the authenticated user can create spaces for their own account.\n\nUsers can create personal Copilot Spaces for their individual use.\n\nOAuth app tokens and personal access tokens (classic) need the `read:user` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"username":{"type":"string","description":"The handle for the GitHub user account."}},"required":["username"],"additionalProperties":false},"body":{"type":"object","properties":{"name":{"type":"string","description":"The name of the Copilot Space.","examples":["My Development Space"]},"description":{"type":"string","description":"A description of the Copilot Space.","examples":["Personal space for development assistance"]},"general_instructions":{"type":"string","maxLength":4000,"description":"General instructions for the Copilot Space.","examples":["Help me with React development patterns and best practices"]},"base_role":{"type":"string","enum":["reader","no_access"],"description":"The base role that determines default permissions for the space.\n- `no_access`: No default access (default)\n- `reader`: Makes the space publicly readable\nNote: User spaces do not support writer or admin base roles.","default":"no_access"},"resources_attributes":{"type":"array","description":"Resources to attach to the space.","items":{"type":"object","properties":{"resource_type":{"type":"string","enum":["repository","github_file","free_text","github_issue","github_pull_request","media_content","uploaded_text_file"],"description":"The type of resource."},"metadata":{"type":"object","description":"Metadata specific to the resource type.","properties":{"repository_id":{"type":"integer","description":"Repository ID for repository or file resources."},"file_path":{"type":"string","description":"File path for file resources."},"text":{"type":"string","description":"Text content for free text resources."},"name":{"type":"string","description":"Name for the resource."},"number":{"type":"integer","description":"Issue or PR number."}}}}}}},"required":["name"],"examples":[{"name":"My Development Space","description":"Personal space for development assistance","general_instructions":"Help me with React development patterns and best practices","resources_attributes":[{"resource_type":"github_file","metadata":{"repository_id":789012,"file_path":"src/components/App.js"}},{"resource_type":"free_text","metadata":{"name":"Development Notes","text":"Focus on clean code principles and modern React patterns"}}]}]}},"required":["path","body"],"additionalProperties":false},"name":"Create a Copilot Space for a user","id":"github.copilot-spaces.create-for-user","example":{"path":{"username":"example"},"body":{"name":"My Development Space","description":"Personal space for development assistance","general_instructions":"Help me with React development patterns and best practices","resources_attributes":[{"resource_type":"github_file","metadata":{"repository_id":789012,"file_path":"src/components/App.js"}},{"resource_type":"free_text","metadata":{"name":"Development Notes","text":"Focus on clean code principles and modern React patterns"}}]}},"maxRequests":1,"summary":false}}