Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/lib/mcp/tools/playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ export function registerPlaywrightTool(server: McpServer) {
],
};
} catch (error) {
// No normal API response came back -- the session was gone, unleased, the request
// was rejected, or it timed out. Distinct from code that ran and threw, which comes
// back as a 200 with success: false so the agent can read the failure and adjust.
return {
content: [
{
Expand All @@ -70,6 +73,7 @@ export function registerPlaywrightTool(server: McpServer) {
),
},
],
isError: true,
};
}
},
Expand Down
Loading