MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / toolSupportsTask

Function toolSupportsTask

server/src/training-agent/task-handlers.ts:280–284  ·  view source on GitHub ↗

Look up which tools allow task augmentation.

(toolName: string)

Source from the content-addressed store, hash-verified

278
279/** Look up which tools allow task augmentation. */
280function toolSupportsTask(toolName: string): boolean {
281 const tool = TOOLS.find(t => t.name === toolName);
282 const support = tool?.execution?.taskSupport as string | undefined;
283 return support === 'optional' || support === 'required';
284}
285
286/**
287 * Extract an account-scoping string for the idempotency cache from the

Callers 1

dispatchCallToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected