serial.spec.attach
Attach a registered protocol spec to an active serial connection session for in-memory interaction. Enables sending commands and executing flows via the spec.
Instructions
Attach a registered spec to a connection session (in-memory only). The spec will be available via serial.spec.get for the duration of this connection. After attaching, check serial.plugin.list for a matching plugin, then present the user with their options: interact with the device using the spec (send commands, execute flows), use plugin shortcut tools if a plugin is loaded, extend an existing plugin with new tools, or create a new plugin using serial.plugin.template.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes | ||
| spec_id | Yes | The spec_id from serial.spec.register. |