Interface Nexus\Mcp\Schema\Elicitation\PrimitiveSchemaDefinition

<T is array<string, mixed>>

extends JsonSerializable, Arrayable<T>

Restricted schema definitions that only allow primitive types without nested objects or arrays.

  • Nexus\Mcp\Schema\Elicitation\PrimitiveSchemaDefinition extends JsonSerializable, Arrayable<T>
    • Nexus\Mcp\Schema\Elicitation\StringSchema implements PrimitiveSchemaDefinition<array{type: 'string', description?: non-empty-string, title?: non-empty-string, minLength?: int<0, max>, maxLength?: int<0, max>, format?: ('date'|'date-time'|'email'|'uri'), default?: string}>
    • Nexus\Mcp\Schema\Elicitation\NumberSchema implements PrimitiveSchemaDefinition<array{type: 'number', description?: non-empty-string, title?: non-empty-string, minimum?: (float|int), maximum?: (float|int), default?: (float|int)}>
    • Nexus\Mcp\Schema\Elicitation\EnumSchema implements PrimitiveSchemaDefinition<array{type: 'string', enum: list<non-empty-string>, enumNames?: list<non-empty-string>, description?: non-empty-string, title?: non-empty-string, default?: non-empty-string}>
    • Nexus\Mcp\Schema\Elicitation\BooleanSchema implements PrimitiveSchemaDefinition<array{type: 'boolean', description?: non-empty-string, title?: non-empty-string, default?: bool}>
Methods inherited from Nexus\Mcp\Schema\Arrayable
toArray()