Spy Run
spy_runRun Python code from a Scratch project tab and capture its printed output, with optional stdin and timeout settings for headless execution.
Instructions
Run a tab's generated Python and return what it printed.
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": "spy_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| stdin | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |