Skip to content

tool_execution_error

{
"error": {
"code": "tool_execution_error",
"message": "click failed: target detached from DOM",
"data": { "tool": "kifas.session.click", "session_id": "..." }
}
}

HTTP status: 200 (per MCP — the tool call returns successfully with isError: true).

The tool handler ran but the underlying browser operation failed. Common cases:

  • selector matched no elements
  • The page navigated mid-call, detaching the target node
  • The browser crashed or the session was reaped during the call
  • Re-snapshot the page (kifas.session.snapshot) and check the live DOM.
  • Add a wait_for clause to your navigate calls so the handler doesn’t race the page’s load lifecycle.
  • For flaky pages, retry the failing call with a short backoff (≤2s, max 3 attempts).

This error is not counted against your rate limit — the tool ran, even if the browser said no.