Get Connection Decision
terminal_get_connection_decisionEvaluates the configured policy for a discovered endpoint before opening a serial session, returning ask, connect, deny, or none so clients know whether user approval or no action is required.
Instructions
Evaluate the configured response to a discovered endpoint. After an appeared device event, call this before terminal_open_serial: action ask requires user approval, connect permits client-controlled opening, deny requires no action, and none requires no action. This tool never opens a session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | Yes | Runtime endpoint reported by device discovery, for example COM6. | |
| transport | Yes | Transport family reported by device discovery, for example serial. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| policy | Yes | ||
| reason | No | ||
| present | Yes | ||
| endpoint | Yes | ||
| connected | Yes | ||
| transport | Yes | ||
| session_id | No | ||
| session_ref | No |