Spy Write Python
spy_write_pythonConvert Python source code into Scratch blocks for a project tab. Provide the code and optional file/replace settings to generate or update the block representation.
Instructions
THE MAIN BUILD TOOL: give ordinary Python, it becomes Scratch blocks in a tab.
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": {
"source": "<source>"
},
"name": "spy_write_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | main | |
| source | Yes | ||
| replace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |