Start a build
start_buildHave the on-server agent build a web page, site, app or API from a plain-language goal. Use it only when the user asks for that agent: it counts against the AI budget like prompt, and you can write the code yourself with write_file, exec and start_app, then deploy. Starts an agent run that works through each stage in order: plan, scaffold, write the code, install, build and test, then start it on the project's port. Returns a build_id to poll with get_build, and the run_id of the run doing the work. Pass project_id to build inside that project's workspace folder, then deploy it to put the result online; omit project_id to build at the server workspace root.
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": {
"server_id": "<server_id>",
"goal": "<goal>"
},
"name": "start_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | What to build, in plain language, e.g. "a page that turns a CSV upload into a chart". | |
| server_id | Yes | The server's id, as returned by create_server or list_servers. | |
| project_id | No | Optional. Target this project's workspace folder instead of the server workspace root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | No | The agent run doing the work. Follow it with get_run. | |
| status | Yes | Build status. | |
| build_id | Yes | The build. Poll it with get_build. | |
| project_id | No | The project it builds in. null at the server root. |