run_code
Execute a Python snippet in a sandboxed subprocess and return stdout/stderr, so agents can verify code behaves as claimed.
Instructions
Run a Python snippet in a sandboxed subprocess and return its stdout/stderr. Use to check that code does what it claims.
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": {
"code": "<code>"
},
"name": "run_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| stdin | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||