validate_pattern
Validate whether a string matches email, URL, or phone format. Returns true if valid, false otherwise.
Instructions
[INSTRUCTIONS] Returns true if the string is a valid format, false otherwise.
Validates if a single string perfectly matches an email, URL, or phone format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The single string to validate (e.g. "user@example.com"). | |
| type | Yes | The pattern type: "email", "url", or "phone". |