errorResultf is the printf cousin of errorResult.
(format string, args ...any)
| 18 | |
| 19 | // errorResultf is the printf cousin of errorResult. |
| 20 | func errorResultf(format string, args ...any) *mcp.CallToolResult { |
| 21 | return errorResult(fmt.Errorf(format, args...)) |
| 22 | } |
| 23 | |
| 24 | // jsonResult marshals v as pretty JSON and returns it as the tool's |
| 25 | // TextContent payload. Errors during marshalling become tool errors. |
no test coverage detected