MCPcopy Index your code
hub / github.com/callstack/agent-device / pointSchema

Function pointSchema

src/commands/command-input.ts:74–85  ·  view source on GitHub ↗
(description: string)

Source from the content-addressed store, hash-verified

72}
73
74function pointSchema(description: string): JsonSchema {
75 return {
76 type: 'object',
77 description,
78 properties: {
79 x: { type: 'number' },
80 y: { type: 'number' },
81 },
82 required: ['x', 'y'],
83 additionalProperties: false,
84 };
85}
86
87function enumSchema(values: readonly string[], description?: string): JsonSchema {
88 return { type: 'string', enum: values, ...(description ? { description } : {}) };

Callers 1

pointFieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…