(message string)
| 3 | import "github.com/modelcontextprotocol/go-sdk/mcp" |
| 4 | |
| 5 | func NewToolResultText(message string) *mcp.CallToolResult { |
| 6 | return &mcp.CallToolResult{ |
| 7 | Content: []mcp.Content{ |
| 8 | &mcp.TextContent{ |
| 9 | Text: message, |
| 10 | }, |
| 11 | }, |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | func NewToolResultError(message string) *mcp.CallToolResult { |
| 16 | return &mcp.CallToolResult{ |
no outgoing calls