plugin
redirectionRedirection Abilities
Redirects integration. URL redirection rules.
4Total Abilities
0Destructive
1Capability Gates
Functional Domains:
Redirects
WordPress capabilities required:
manage_options 4Available Tools (4)
redirection_list_redirectsmanage_optionsList redirects from the Redirection plugin. Direct read from the wp_redirection_items table. Filter by group_id or a URL substring; default limit 50, max 200.
Parameter Schema3 parameters
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"description": "Max redirects to return (default 50, max 200)"
},
"group_id": {
"type": "integer",
"description": "Only return redirects in this group (use redirection_list_groups to discover IDs)"
},
"search": {
"type": "string",
"description": "Case-insensitive substring match against source URL"
}
}
}redirection_create_redirectmanage_optionsCreate a redirect using the Redirection plugin. Wraps Red_Item::create. status_code defaults to 301 (permanent).
Parameter Schema6 parameters
{
"type": "object",
"properties": {
"source_url": {
"type": "string",
"description": "Source path (e.g. /old-page/) or full URL"
},
"target_url": {
"type": "string",
"description": "Destination path or full URL"
},
"status_code": {
"type": "integer",
"enum": [
301,
302,
307
],
"description": "HTTP status code (301 permanent, 302 temp, 307 preserved-method)"
},
"group_id": {
"type": "integer",
"description": "Group to file this redirect under. Defaults to Redirection's default group."
},
"regex": {
"type": "boolean",
"description": "Treat source_url as a regex pattern. Default false."
},
"title": {
"type": "string",
"description": "Optional human-readable title for admin display."
}
},
"required": [
"source_url",
"target_url"
]
}redirection_update_redirectmanage_optionsUpdate an existing Redirection entry by ID. Pass only the fields you want to change.
Parameter Schema4 parameters
{
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Redirect ID (use redirection_list_redirects to discover)"
},
"target_url": {
"type": "string",
"description": "New destination path or full URL"
},
"status_code": {
"type": "integer",
"enum": [
301,
302,
307
]
},
"enabled": {
"type": "boolean",
"description": "Enable (true) or disable (false) the redirect"
}
},
"required": [
"id"
]
}redirection_list_groupsmanage_optionsList the Redirection group registry. Direct read from wp_redirection_groups. Use group IDs to file new redirects into the correct category.
Parameter Schema0 parameters
{
"type": "object",
"properties": {}
}