Bulk Update Media Alt Text from CSV
wp_bulk_update_media_alt_textBulk update WordPress media alt text from a CSV file, with optional caption, description, and title fields. Dry-run mode previews changes before applying.
Instructions
Backfill alt text (and optionally caption/description/title) across many media items from a CSV. Required columns: id, alt_text. Optional: caption, description, title. Defaults to dry_run=true.
Use case: the 2020-era alt-text backfill on arsnovasingers.org.
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": {
"csv_path": "<csv_path>"
},
"name": "wp_bulk_update_media_alt_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| csv_path | Yes | Path to CSV. Required columns: id, alt_text. Optional columns: caption, description, title. | |
| stop_on_error | No | ||
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |