MCPcopy Create free account
hub / github.com/callstack/agent-device / defineFieldCommandMetadata

Function defineFieldCommandMetadata

src/commands/field-command-contract.ts:4–14  ·  view source on GitHub ↗
(name: TName, description: string, fields: TFields)

Source from the content-addressed store, hash-verified

2import { fieldsInputSchema, readFieldInput, type CommandFieldMap } from './command-input.ts';
3
4export function defineFieldCommandMetadata<
5 const TName extends string,
6 const TFields extends CommandFieldMap,
7>(name: TName, description: string, fields: TFields) {
8 return defineCommandMetadata({
9 name,
10 description,
11 inputSchema: fieldsInputSchema(fields),
12 readInput: (input) => readFieldInput(input, fields),
13 });
14}

Callers 15

index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
diff.tsFile · 0.90
wait.tsFile · 0.90
screenshot.tsFile · 0.90
alert.tsFile · 0.90
snapshot.tsFile · 0.90
settings.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90

Calls 3

defineCommandMetadataFunction · 0.90
fieldsInputSchemaFunction · 0.90
readFieldInputFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…