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

Function editRejectedResult

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

Source from the content-addressed store, hash-verified

891/** An edit batch that could not be applied. Carries the current stored source
892 * so the model can rebuild its edits without a `show-artifact` round trip. */
893const editRejectedResult = (reason: string, currentCode: string): McpToolResult => ({
894 content: [
895 {
896 type: "text",
897 text: [
898 `edit-artifact rejected: ${reason}`,
899 "Nothing was changed. The artifact's current source is in structuredContent.code — build the retry against it.",
900 ].join("\n"),
901 },
902 ],
903 structuredContent: { status: "error", error: reason, code: currentCode },
904 isError: true,
905});
906
907/** `execute-action` was handed something other than a single proxy-shaped tool
908 * 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