load_pattern
Load a saved pattern from the library by providing its file path, and receive the corresponding Sonic Pi code for live execution.
Instructions
Load a saved pattern from the library, returning its code.
Args: path: Relative path from the patterns root (e.g. "drums/boom_bap_basic.rb")
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": {
"path": "<path>"
},
"name": "load_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |