Run
runExecutes a local Python file directly on a MicroPython device from RAM without copying it to the device filesystem.
Instructions
Run a local Python file on the device from RAM (not copied to filesystem).
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": {
"file_path": "<file_path>"
},
"name": "run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Absolute wall-clock timeout in seconds (default 30). | |
| file_path | Yes | Path to a .py file on the host machine. | |
| read_timeout | No | Per-character idle timeout in seconds (default 10). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |