Build and deploy a commit
deploy_projectTrigger a build + deploy for a project. Deploys the given commit, or the tip of the project's ref when commit is omitted. Returns job_id and attempt_id to poll with get_build_status. Requires a read-write token.
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": {
"project_id": "<project_id>"
},
"name": "deploy_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | optional git ref (branch/tag); defaults to the project's configured ref | |
| commit | No | optional commit hash to deploy; defaults to the tip of the project's ref | |
| project_id | Yes | the project id (from list_projects) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| status | No | present, and always "pending_approval", only when this call was parked instead of run immediately because the project's (or kad-back's own) plan-mode setting requires a human to approve it first | |
| message | Yes | ||
| plan_id | No | poll get_plan_status with this id for the eventual outcome | |
| approve_at | No | the kad.dev dashboard URL a human approves or rejects this plan from | |
| attempt_id | Yes | ||
| project_id | Yes | ||
| expires_in_s | No | the plan can no longer be approved after this many seconds | |
| redetect_proposed | No |