You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#348: Allow ToolError to carry custom content and is_error
Adds `content` and `is_error` parameters to ToolError so tool functions
can return arbitrary content blocks with isError=True (e.g., images,
structured data alongside error status).
- exceptions.py: ToolError gains content and is_error parameters
- tools/base.py: Re-raise ToolError instead of wrapping it
- server.py: Catch ToolError, construct CallToolResult with proper content
- tests: 2 new tests covering ToolError with custom content and default
Closes#348
Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
0 commit comments