final | |
|---|---|
extends |
ToolSchema<string, array{type: 'string', description?: non-empty-string, title?: non-empty-string, minLength?: int<0, max>, maxLength?: int<0, max>, pattern?: non-empty-string, default?: string}> |
The string type is used for validating strings/texts containing Unicode characters.
| Methods | ||
|---|---|---|
public
|
minLength(int $minLength): self
|
# |
public
|
maxLength(int $maxLength): self
|
# |
public
|
pattern(non-empty-string $pattern): self
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Schema\Tool\ToolSchema\ToolSchema |
|---|
__construct(), root(), asArray(), asBoolean(), asInteger(), asNull(), asNumber(), asObject(), asString(), title(), description(), default(), required(), isRequired(), jsonSerialize() |
| Properties inherited from Nexus\Mcp\Schema\Tool\ToolSchema\ToolSchema |
|---|
$title, $description, $default, $name |