run_custom_code
Execute arbitrary MicroPython code directly in ESP32 RAM over the CDC0 Raw REPL, with an optional timeout to abort long-running scripts.
Instructions
Execute arbitrary MicroPython code directly in ESP32 RAM via CDC0 Raw REPL.
Args: code: MicroPython source code string to execute. timeout: Maximum execution time in seconds before aborting (default: 10.0s).
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": "run_custom_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||