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

Function commandInputSchema

src/commands/command-input.ts:59–72  ·  view source on GitHub ↗
(
  properties: Record<string, JsonSchema>,
  required: readonly string[] = [],
)

Source from the content-addressed store, hash-verified

57type CommonInputOptions = { readTargetAlias?: boolean };
58
59function commandInputSchema(
60 properties: Record<string, JsonSchema>,
61 required: readonly string[] = [],
62): JsonSchema {
63 return {
64 type: 'object',
65 properties: {
66 ...commonProperties(),
67 ...properties,
68 },
69 ...(required.length > 0 ? { required } : {}),
70 additionalProperties: false,
71 };
72}
73
74function pointSchema(description: string): JsonSchema {
75 return {

Callers 1

fieldsInputSchemaFunction · 0.85

Calls 1

commonPropertiesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…