prepare_secret
Stage a secret before a password prompt, storing it in a buffer for automatic entry when the prompt appears. Prevents timeout issues on devices with short password timeouts.
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 |
|---|---|---|---|
| prompt | No | Prompt shown to the user (default: "Enter secret: ") | |
| session_id | Yes | ||
| 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. |