sonic_run_code
Execute Sonic Pi code in the managed runtime and collect newly generated events for real-time analysis and monitoring.
Instructions
Run Sonic Pi code in the managed runtime and return newly collected events.
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": "sonic_run_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| collect_ms | No | ||
| buffer_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||