fail_task
Signals an unrecoverable task failure with a required reason, preventing silent stops. Provide tab_id for multiple tabs or session_token for client-owned visual sessions.
Instructions
Signal that the task cannot be completed. Include the reason why, but never include passwords, tokens, API keys, or sensitive form values. Call this instead of just stopping when you encounter an unrecoverable problem. Provide tab_id when more than one tab/session could be active. Provide session_token only when ending a client-owned visual session created by start_visual_session; otherwise omit it and keep the normal task-failure semantics. Multi-agent: agent-scoped tabs; cross-agent reject with TAB_NOT_OWNED; cap configurable (default 8, 1-64).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why the task cannot be completed (e.g. "Page requires login", "Data not found on page") | |
| tab_id | No | Optional target tab id used to associate this outcome with the correct local MCP replay session. | |
| session_token | No | Optional token returned by start_visual_session. Provide this only when failing a client-owned visual session. |