list_redirects
List a site's redirect rules in evaluation order to see user rules before deployed file rules, identify shadowed entries, and page through results for auditing or edits.
Instructions
List a site's redirect rules in the order they are checked; the first match answers. User rules come first: managedBy: "user", each with an id, kept on the hostname and changed with the redirect tools. Then the live deploy's _redirects rules: managedBy: "file", each with its line, changed only by deploying a new _redirects. A file rule with shadowedBy never answers, because a user rule for the same path comes first. Returns version, which set_redirects and edit_redirects take to refuse a change if the rules changed since; total and a page of at most 1,000 rules from offset; the file's report, with the lines it skipped and why, and whether it is enabled; and the limits. Redirects apply only on the organization's own custom domains: on a shared domain the report says notApplied: "CUSTOM_DOMAIN_REQUIRED".
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": {
"siteId": "<siteId>"
},
"name": "list_redirects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rules to return, at most and by default 1,000. | |
| offset | No | Position of the first rule to return, from 0. Defaults to 0. | |
| siteId | Yes | The site ID (from `list_sites`). | |
| partition | No | Data partition the site lives in. Omit to use the user's home partition. |