MCPcopy Create free account
hub / github.com/FIND-Lab/AgentWard / extractToolResultId

Function extractToolResultId

index.ts:26–28  ·  view source on GitHub ↗

Inline implementation of extractToolResultId — reads toolCallId or toolUseId * from a message object. Mirrors src/agents/tool-call-id.ts:71-83.

(message: Record<string, unknown>)

Source from the content-addressed store, hash-verified

24/** Inline implementation of extractToolResultId — reads toolCallId or toolUseId
25 * from a message object. Mirrors src/agents/tool-call-id.ts:71-83. */
26function extractToolResultId(message: Record<string, unknown>): string | undefined {
27 return (message.toolCallId ?? message.toolUseId) as string | undefined;
28}
29
30function send_message(state: SessionState, content: string) {
31 if (!plugin.config!.notifications.enableProactiveNotifications) return;

Callers 1

registerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected