kb_repo_clone
Get a temporary clone URL for a repository in the space's project map (an installation token minted by the GitHub App, scoped to that one repository): repo is owner/name; write=false reads only (contents:read), write=true also writes (contents:write + pull_requests:write). The token expires in 1 hour and is only for git clone / push — never paste it into chats, documents or commits. With write=true, don't push to the default branch — open a new branch and a pull request instead. The repository must be in the project map allow-list (ticked in the console under Knowledge → Repository maps); others are refused.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>"
},
"name": "kb_repo_clone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | owner/name, e.g. acme/website — must be in the project map allow-list | |
| write | No | true: also allow pushing and opening pull requests (default false: read-only) |