execute
Execute Python code in a persistent IPython environment, preserving variables and state across runs for iterative coding tasks.
Instructions
Execute Python source in the persistent IPython namespace.
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": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No | ||
| status | Yes | ||
| stderr | No | ||
| stdout | No | ||
| runtime | No | ||
| truncated | No | ||
| display_data | No | ||
| execution_count | No |