MCPcopy Create free account
hub / github.com/TanStack/ai / toolNameForItem

Function toolNameForItem

packages/ai-codex/src/stream/translate.ts:30–37  ·  view source on GitHub ↗
(item: CodexThreadItem)

Source from the content-addressed store, hash-verified

28 * type verbatim (`command_execution`, `file_change`, ...).
29 */
30export function toolNameForItem(item: CodexThreadItem): string {
31 if (item.type === 'mcp_tool_call') {
32 return item.server === BRIDGED_MCP_SERVER_NAME
33 ? item.tool
34 : `mcp__${item.server}__${item.tool}`
35 }
36 return item.type
37}
38
39/** Thread items the translator surfaces as already-resolved tool calls. */
40type CodexToolItem = Extract<

Callers 2

translate.test.tsFile · 0.90
openToolCallFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected