Setup
Parent-agent guidance
Use SDK-owned instructions instead of copying prompt text into docs or config:toolPrefix when the host exposes names
such as mcp__webcompute__run_web_agent:
Tool input
Result handling
run_web_agent may return:
| Status | Parent-agent behavior |
|---|---|
completed | Use the final text or structured output as browser evidence. |
needs_confirmation | Ask the user before continuing approval-sensitive work. |
failed | Report the blocker or error; do not invent a successful result. |
cancelled | Preserve the cancellation reason and stop. |