Function
NewToolResultResourceLink
(message string, link *mcp.ResourceLink)
Source from the content-addressed store, hash-verified
| 49 | } |
| 50 | |
| 51 | func NewToolResultResourceLink(message string, link *mcp.ResourceLink) *mcp.CallToolResult { |
| 52 | return &mcp.CallToolResult{ |
| 53 | Content: []mcp.Content{ |
| 54 | &mcp.TextContent{ |
| 55 | Text: message, |
| 56 | }, |
| 57 | link, |
| 58 | }, |
| 59 | IsError: false, |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | // NewToolResultAwaitingFormSubmission signals to the agent that a tool call |
| 64 | // has been intercepted to show an MCP App form to the user and has NOT |
Tested by
no test coverage detected