Redirect Trace
redirect_traceTrace a URL's redirect chain hop by hop, reporting each status code and final destination. Flags loops, long chains, temporary redirects, and non-HTTPS endpoints.
Instructions
Follow a URL's redirect chain hop by hop, reporting each status code and target. Flags long chains (which waste crawl budget), redirect loops, temporary 302/307 redirects where a permanent 301/308 belongs, and chains that do not end on HTTPS.
Args:
url (string): the starting URL.
response_format ('markdown' | 'json'): output format (default 'markdown').
Returns: { final_url, final_status, hops[{url, status, location}], hop_count, https_upgrade, ends_https, has_loop, has_temporary_redirect, elapsed_ms, findings[] }.
Example: "Where does http://example.com/old-page end up?" -> redirect_trace(url="http://example.com/old-page").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Page URL to analyse, e.g. 'https://example.com/blog/post'. The scheme defaults to https://. | |
| response_format | No | Output format: 'markdown' for a human-readable summary (default) or 'json' for the full structured payload. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| hops | Yes | ||
| findings | Yes | ||
| has_loop | Yes | ||
| final_url | Yes | ||
| hop_count | Yes | ||
| elapsed_ms | Yes | ||
| ends_https | Yes | ||
| final_status | Yes | ||
| https_upgrade | Yes | ||
| has_temporary_redirect | Yes |