MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / editRejectedResult

Function editRejectedResult

packages/hosts/mcp/src/tool-server.ts:882–894  ·  view source on GitHub ↗
(reason: string, currentCode: string)

Source from the content-addressed store, hash-verified

880/** An edit batch that could not be applied. Carries the current stored source
881 * so the model can rebuild its edits without a `show-artifact` round trip. */
882const editRejectedResult = (reason: string, currentCode: string): McpToolResult => ({
883 content: [
884 {
885 type: "text",
886 text: [
887 `edit-artifact rejected: ${reason}`,
888 "Nothing was changed. The artifact's current source is in structuredContent.code — build the retry against it.",
889 ].join("\n"),
890 },
891 ],
892 structuredContent: { status: "error", error: reason, code: currentCode },
893 isError: true,
894});
895
896/** `execute-action` was handed something other than a single proxy-shaped tool
897 * call. Names the contract rather than just refusing, since the reader is

Callers 1

editArtifactFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected