run_file
Execute a local Python script directly on a MicroPython board without saving it to the device, using a project-relative path and optional timeout.
Instructions
Run a .py file from the computer on the board without saving it there (path relative to the project directory). Default timeout 30 s.
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": {
"path": "<path>"
},
"name": "run_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| timeout | No |