ble_write_descriptor
Write to a GATT descriptor by handle. Use only when direct descriptor writes are necessary; CCCD handling is automatic.
Instructions
Write to a GATT descriptor by handle. Requires BLE_MCP_ALLOW_WRITES=true. Rarely needed directly — bleak handles CCCD for notify/indicate automatically.
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>",
"handle": "<handle>"
},
"name": "ble_write_descriptor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | Yes | The descriptor handle (integer). | |
| value_b64 | No | Base64-encoded value. | |
| value_hex | No | Hex-encoded value. | |
| connection_id | Yes |