update_link
Replace specific URLs in WordPress posts or pages by identifying old links and updating them with new URLs for content management.
Instructions
Replace a specific link URL in a post/page. Finds the old URL and replaces it with a new one.
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": {
"post_id": "<post_id>",
"old_url": "<old_url>",
"new_url": "<new_url>"
},
"name": "update_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | Post or page ID | |
| old_url | Yes | The current URL to find and replace | |
| new_url | Yes | The new URL to replace it with |