serial_uboot_state
Detect, set, or clear the U-Boot mark for a serial session, controlling automatic command wrapping. Use 'detect' for side-effect-free classification, 'set'/'clear' to override, 'status' to read.
Instructions
Query, detect, or force-set the U-Boot mark of a serial session. The mark decides serial_exec's marker wrapping (U-Boot sessions use plain style without subshell). Actions: 'detect' (default) — classify the live environment from buffered tail evidence first (zero side effects); if inconclusive, send a bare Enter to redraw the prompt. Conclusive results sync the mark automatically. WARNING: do NOT detect while a command may still be running or waiting for interactive input (e.g. Y/N) — the probe Enter could answer it. 'set'/'clear' — force the mark when auto-detection is out of sync; 'status' — read the mark only, no device I/O.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | detect (default) = probe live environment and sync mark; set/clear = force mark; status = read mark only | |
| session_id | Yes | The session ID returned by serial_open |