MCPcopy
hub / github.com/affaan-m/ECC / toolResult

Function toolResult

tests/scripts/loop-status.test.js:87–103  ·  view source on GitHub ↗
(timestamp, sessionId, toolUseId, content = 'ok')

Source from the content-addressed store, hash-verified

85}
86
87function toolResult(timestamp, sessionId, toolUseId, content = 'ok') {
88 return {
89 timestamp,
90 sessionId,
91 type: 'user',
92 message: {
93 role: 'user',
94 content: [
95 {
96 type: 'tool_result',
97 tool_use_id: toolUseId,
98 content,
99 },
100 ],
101 },
102 };
103}
104
105function assistantMessage(timestamp, sessionId, text) {
106 return {

Callers 1

runTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected