validator_validate_url
Validate URLs by checking scheme and host validity. Returns boolean valid status along with parsed scheme, host, path, and reason for invalid URLs.
Instructions
[validator] Validate a URL. Checks that it has a valid scheme and host. Returns {valid: bool, scheme: str, host: str, path: str, reason: str}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| allowed_schemes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |