run_python
Execute Python code or scripts directly from AI assistants, supporting virtual environments and command-line arguments for automated development tasks.
Instructions
Execute Python code or script
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Python code to execute | |
| script_path | No | Path to Python script file | |
| args | No | Command line arguments | |
| venv | No | Path to virtual environment |