prepare_secret
Pre-stage a secret for sessions with short password timeouts. Shows a dialog to enter the secret before a prompt appears and sends it automatically when detected.
Instructions
Pre-stage a secret (password/passphrase) for a session. Shows a GUI dialog NOW so the operator can enter the secret before a password prompt appears. The secret is stored in a buffer and automatically sent when a password prompt is detected — no further agent action needed. Use this before connecting to devices with short password timeouts (e.g. serial console). The buffered secret is never logged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line_ending | No | Line ending appended after the secret (default: "\r"). Use "\r\n" for serial consoles that require CR+LF, "\n" for Linux terminals. | |
| prompt | No | Prompt shown to the user (default: "Enter secret: ") | |
| session_id | Yes |