fetch_clean
Fetch a URL, sanitize against injection attacks, limit character count, and return cleaned text along with an audit log.
Instructions
Fetch a URL and return injection-sanitized, size-capped text.
Args: url: an http/https URL to fetch. max_chars: per-fetch character cap (clamped to a hard ceiling).
Returns a dict with the cleaned content and an audit of what was done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| max_chars | No |