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

Function elementTargetSchemaVariants

src/commands/command-input.ts:647–669  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

645}
646
647function elementTargetSchemaVariants(): JsonSchema[] {
648 return [
649 {
650 type: 'object',
651 properties: {
652 kind: { type: 'string', const: 'ref' },
653 ref: { type: 'string', description: 'Snapshot element ref such as @e12.' },
654 label: { type: 'string', description: 'Optional human label for the ref.' },
655 },
656 required: ['kind', 'ref'],
657 additionalProperties: false,
658 },
659 {
660 type: 'object',
661 properties: {
662 kind: { type: 'string', const: 'selector' },
663 selector: { type: 'string', description: 'Agent-device selector expression.' },
664 },
665 required: ['kind', 'selector'],
666 additionalProperties: false,
667 },
668 ];
669}
670
671function readRecordField(record: Record<string, unknown>, key: string): Record<string, unknown> {
672 const value = record[key];

Callers 2

interactionTargetSchemaFunction · 0.85
elementTargetSchemaFunction · 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…