ble_spec_attach
Attach a registered BLE spec to an active connection session, making it available for reading/writing characteristics and executing flows within that session.
Instructions
Attach a registered spec to a connection session (in-memory only). The spec will be available via ble.spec.get for the duration of this connection. After attaching, check ble.plugin.list for a matching plugin, then present the user with their options: interact with the device using the spec (read/write characteristics, execute flows), use plugin shortcut tools if a plugin is loaded, extend an existing plugin with new tools, or create a new plugin using ble.plugin.template.
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": {
"connection_id": "<connection_id>",
"spec_id": "<spec_id>"
},
"name": "ble_spec_attach"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec_id | Yes | The spec_id from ble.spec.register. | |
| connection_id | Yes |