MCPcopy Create free account
hub / github.com/cortexkit/magic-context / toolResultMsg

Function toolResultMsg

packages/pi-plugin/src/pi-todo-inject.test.ts:82–93  ·  view source on GitHub ↗
(
	callId: string,
	timestamp: number,
)

Source from the content-addressed store, hash-verified

80}
81
82function toolResultMsg(
83 callId: string,
84 timestamp: number,
85): Record<string, unknown> {
86 return {
87 role: "toolResult",
88 toolCallId: `${callId}|fc_${callId}`,
89 toolName: "read",
90 content: [{ type: "text", text: "ok" }],
91 timestamp,
92 };
93}
94
95describe("injectSyntheticTodowriteForPi", () => {
96 it("skips defer replay when the persisted anchor is outside the visible window", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected