MCPcopy Create free account
hub / github.com/ShipSecAI/studio / getActionInputIds

Function getActionInputIds

packages/component-sdk/src/tool-helpers.ts:91–96  ·  view source on GitHub ↗
(component: ComponentDefinition)

Source from the content-addressed store, hash-verified

89 * These are inputs that the agent provides at runtime.
90 */
91export function getActionInputIds(component: ComponentDefinition): string[] {
92 const inputs = extractPorts(component.inputs);
93 return inputs
94 .filter(input => inferBindingType(input) === 'action')
95 .map(input => input.id);
96}
97
98/**
99 * Get the IDs of parameters explicitly exposed to the agent.

Callers 4

callComponentToolMethod · 0.90
getToolInputShapeFunction · 0.85
getToolSchemaFunction · 0.85

Calls 2

extractPortsFunction · 0.90
inferBindingTypeFunction · 0.85

Tested by

no test coverage detected