run_code
Run python or javascript with no outbound network. Returns stdout, stderr, exit_code, status, duration_ms, and run_id. Call keys.create once. Pass caller_key from keys.create on every later tools/call. Authorization: Bearer pf_... or the header X-Caller-Key also works. A header key is used when one is present.
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": {
"language": "<language>",
"code": "<code>"
},
"name": "run_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| files | No | ||
| stdin | No | ||
| language | Yes | ||
| timeout_s | No | ||
| caller_key | No |