{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a codespace owned by the authenticated user for the specified pull request.\n\nOAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"owner":{"type":"string","description":"The account owner of the repository. The name is not case sensitive."},"repo":{"type":"string","description":"The name of the repository without the `.git` extension. The name is not case sensitive."},"pull_number":{"type":"integer","description":"The number that identifies the pull request."}},"required":["owner","repo","pull_number"],"additionalProperties":false},"body":{"type":["object","null"],"properties":{"location":{"description":"The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.","type":"string"},"geo":{"description":"The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.","type":"string","enum":["EuropeWest","SoutheastAsia","UsEast","UsWest"]},"client_ip":{"description":"IP for location auto-detection when proxying a request","type":"string"},"machine":{"description":"Machine type to use for this codespace","type":"string"},"devcontainer_path":{"description":"Path to devcontainer.json config to use for this codespace","type":"string"},"multi_repo_permissions_opt_out":{"description":"Whether to authorize requested permissions from devcontainer.json","type":"boolean"},"working_directory":{"description":"Working directory for this codespace","type":"string"},"idle_timeout_minutes":{"description":"Time in minutes before codespace stops from inactivity","type":"integer"},"display_name":{"description":"Display name for this codespace","type":"string"},"retention_period_minutes":{"description":"Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).","type":"integer"}},"examples":[{"repository_id":1,"ref":"main"}]}},"required":["path","body"],"additionalProperties":false},"name":"Create a codespace from a pull request","id":"github.codespaces.create-with-pr-for-authenticated-user","example":{"path":{"owner":"octocat","repo":"hello-world","pull_number":1},"body":{"repository_id":1,"ref":"main"}},"maxRequests":1,"summary":false}}