Skip to content

Commit b82aef0

Browse files
committed
fix
1 parent 61a537f commit b82aef0

File tree

1 file changed

+1
-1
lines changed
  • src/agentlab/backends/browser

1 file changed

+1
-1
lines changed

src/agentlab/backends/browser/mcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def step(self, action: ToolCallAction) -> dict:
159159
def call_tool(self, tool_name: str, arguments: dict) -> list[TextContent | ImageContent]:
160160
tool_result = self._mcp.call_tool(tool_name, arguments)
161161
if tool_result.isError:
162-
return [TextContent(text=f"Error calling tool {tool_name}: {tool_result.error}")]
162+
return [TextContent(text=f"Error calling tool {tool_name}")] + tool_result.content
163163
return tool_result.content
164164

165165
def actions(self) -> tuple[ToolSpec]:

0 commit comments

Comments
 (0)