eval_python
Execute Python code in Sublime Text's main thread, capturing stdout output. Includes access to sublime, window, view, and print.
Instructions
Execute arbitrary Python in Sublime Text's main thread. Locals: sublime, window, view, print. Returns captured stdout in 'output'.
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": "eval_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |