{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a new Copilot Space owned by an organization. The authenticated user must have permissions to create spaces in the organization.\n\nOrganization members with appropriate permissions can create Copilot Spaces to be shared within their organization.\n\nOAuth app tokens and personal access tokens (classic) need the `read: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 the submitted resources.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."}},"required":["org"],"additionalProperties":false},"body":{"type":"object","properties":{"name":{"type":"string","description":"The name of the Copilot Space.","examples":["Team Planning Space"]},"description":{"type":"string","description":"A description of the Copilot Space.","examples":["Organization space for team planning and coordination"]},"general_instructions":{"type":"string","maxLength":4000,"description":"General instructions for the Copilot Space.","examples":["Help the team with planning and coordination tasks"]},"base_role":{"type":"string","enum":["reader","writer","admin","no_access"],"description":"The base role that determines default permissions for organization members.\n- `no_access`: No default access (default)\n- `reader`: Organization members can read the space\n- `writer`: Organization members can read and edit the space\n- `admin`: Organization members have full admin access to the space","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":"Team Planning Space","description":"Organization space for team planning and coordination","general_instructions":"Help the team with planning and coordination tasks","resources_attributes":[{"resource_type":"github_file","metadata":{"repository_id":123456,"file_path":"docs/planning.md"}},{"resource_type":"free_text","metadata":{"name":"Team Guidelines","text":"Our team follows agile methodology and holds daily standups"}}]}]}},"required":["path","body"],"additionalProperties":false},"name":"Create an organization Copilot Space","id":"github.copilot-spaces.create-for-org","example":{"path":{"org":"example"},"body":{"name":"Team Planning Space","description":"Organization space for team planning and coordination","general_instructions":"Help the team with planning and coordination tasks","resources_attributes":[{"resource_type":"github_file","metadata":{"repository_id":123456,"file_path":"docs/planning.md"}},{"resource_type":"free_text","metadata":{"name":"Team Guidelines","text":"Our team follows agile methodology and holds daily standups"}}]}},"maxRequests":1,"summary":false}}