Exec
execRun MicroPython code on a connected board and return stdout, with configurable wall-clock and idle timeouts.
Instructions
Execute MicroPython code on the board and return stdout.
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": "exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python code to execute on the device. | |
| timeout | No | Absolute wall-clock timeout in seconds (default 30). | |
| read_timeout | No | Per-character idle timeout in seconds (default 10). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |