repl_run_file
Execute a Python file in a persistent REPL session, preserving its variables for later use.
Instructions
Execute a Python file inside the persistent session.
Variables defined in the file become available for later use.
Args: params: File path, optional session ID, and optional CLI args.
Returns: JSON with execution result, file metadata, and namespace summary.
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": {
"params": "<params>"
},
"name": "repl_run_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |