Bulk Update Aliases
bulk_update_aliasesRegenerate URL aliases for a Drupal content type by running Pathauto generation, fixing stale or missing aliases after content changes.
Instructions
Regenerate URL aliases for a content type.
Alias generation belongs to the Pathauto module, so this runs
drush pathauto:generate. The previous implementation ran
drush uuri, which is not a Drush command. pattern is not
applied here: patterns are pathauto_pattern config objects, which
pathauto_pattern_create / pathauto_pattern_update manage.
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": {
"bundle": "<bundle>",
"pattern": "<pattern>"
},
"name": "bulk_update_aliases"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | generate | |
| bundle | Yes | ||
| pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||