(reason: string)
| 836 | // artifact was saved and can be reopened later. |
| 837 | |
| 838 | const renderRejectedResult = (reason: string): McpToolResult => ({ |
| 839 | content: [{ type: "text", text: `create-artifact rejected: ${reason}` }], |
| 840 | structuredContent: { status: "error", error: reason }, |
| 841 | isError: true, |
| 842 | }); |
| 843 | |
| 844 | /** `execute-action` was handed something other than a single proxy-shaped tool |
| 845 | * call. Names the contract rather than just refusing, since the reader is |