MCPcopy Index your code
hub / github.com/codeaashu/claude-code / extractToolUseId

Function extractToolUseId

src/services/mcp/client.ts:3247–3252  ·  view source on GitHub ↗
(message: AssistantMessage)

Source from the content-addressed store, hash-verified

3245}
3246
3247function extractToolUseId(message: AssistantMessage): string | undefined {
3248 if (message.message.content[0]?.type !== 'tool_use') {
3249 return undefined
3250 }
3251 return message.message.content[0].id
3252}
3253
3254/**
3255 * Sets up SDK MCP clients by creating transports and connecting them.

Callers 1

callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected