start_server
Register + launch a persistent server command in the sandbox (survives idle-pause/resume, unlike run_command). The app must bind $PORT.
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": {
"sandbox_id": "<sandbox_id>",
"cmd": "<cmd>"
},
"name": "start_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmd | Yes | server command, e.g. `python /app/main.py` | |
| port | No | port the app listens on (0 = the sandbox default) | |
| sandbox_id | Yes | sandbox id |