chore: generate

This commit is contained in:
opencode-agent[bot] 2026-06-15 02:29:40 +00:00
commit 98d66e9a8b
2 changed files with 4 additions and 6 deletions

View file

@ -63,8 +63,7 @@ export function convertTool(mcpTool: MCPToolDef, client: Client, timeout?: numbe
timeout,
},
)
if (result.isError)
throw new Error(formatToolErrorContent(result.content))
if (result.isError) throw new Error(formatToolErrorContent(result.content))
if (result.structuredContent === undefined || result.structuredContent === null) return result
return {
...result,