run_python_in_repl
Execute Python code in a new or existing REPL session, returning stdout, stderr, and the return value.
Instructions
Execute Python code in a REPL. (Create new or use an existing REPL)
Args:
code: Python code to execute
repl_id: ID of the REPL to use
Returns:
str: Result of the execution including stdout, stderr, and the return value
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>",
"repl_id": "<repl_id>"
},
"name": "run_python_in_repl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| repl_id | Yes |