run_code
Run agent code (python / javascript / bash) in an isolated sandbox (no network, CPU/RAM/time limits) and get stdout/stderr/exit_code back. Charged from agent balance; returns payment_required if insufficient (then topup_balance and retry).
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": {
"agent_id": "<agent_id>"
},
"name": "run_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| timeout | No | ||
| agent_id | Yes | ||
| language | No | python |