Expand description
What agents can do with widgets
(docs/specs/SPEC_USER_WIDGETS_AND_WIDGET_API_2026_10_09.md §10), for
agentmux-mcp’s WidgetList, WidgetInstall and OpenWidget: list the
packages, and install one and wait for the user’s answer. An agent never
approves: the prompt is the user’s, and only the host carries the answer.
Structs§
- Install
Body 🔒 - Install
Target 🔒 - The package an install request was filed for, by the request’s id: the runner approves exactly this version and signer, so a package changed in the meantime is not approved.
- Widget
Requests Result
Constants§
- DEFAULT_
WAIT 🔒 - MAX_
WAIT 🔒
Functions§
- asking_
agent 🔒 - Who the prompt says is asking: the agent whose signature verified, or, without one, a plain “not a verified agent” (never a name the caller chose). Its pane comes with it, the one the waiting tone plays for.
- error 🔒
- handle_
widgets_ 🔒install POST /api/v1/widgets/install: copy the package in and, for a verified agent, file a sensitive request to install it (answered at once with the request’s id; the agent is told as it goes). Without a verified agent, ask the user and answer when they do (or when the wait runs out, with the request left for them to answer later in Settings → Widgets).- handle_
widgets_ 🔒list GET /api/v1/widgets: every package and its state.- install_
facts 🔒 - The facts a widget install request shows the person: every permission, who signed it, and plainly when it is a trusted widget (full access to AgentMux).
- publish_
requests 🔒 - Tells every UI the requests now waiting.
- register
- remember_
target 🔒 - take_
target 🔒 - targets 🔒