Push sources to the editor
push_to_editorReplace the code in the human's browser and, if run, compile it in the lab's cloud and start it. The fallback of push_program: use it only when the toolchain to compile locally is missing (no arduino-cli, core or library).
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": {
"files": "<files>"
},
"name": "push_to_editor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | ||
| files | Yes | ||
| session | No | ||
| agent_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |