trace_redirects
Follow a URL's redirect chain hop by hop and report every stop with its status code, plus the final destination. Use to find where a shortened or tracking link actually leads before opening it, to debug redirect loops, or to check that a migration's redirects land where intended. Flags when the chain ends on a different host than it started on.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "trace_redirects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Starting URL. Scheme optional — https is assumed. | |
| maxHops | No | Maximum hops before giving up. |