live_exec
Execute Python statements inside Ableton Live to query or modify the session, tracks, clips, and devices through bindings for song, app, and Live objects.
Instructions
Execute Python statements inside Live with song, app, obj, this, Live, and result bindings. Set result to a compact dict/list summary to return it. General Live object-model bridge; examples are heuristics, not limits.
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": "live_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| ref | No | ||
| detail | No | ||
| max_items | No | ||
| max_depth | No | ||
| max_string_length | No | ||
| timeout | No | Seconds to wait for Live's main thread. | |
| expected_set_signature | No |