validate_block_json
Validate block.json or theme.json files against WordPress schemas to catch missing fields, invalid values, attribute/supports issues, and common mistakes before deployment.
Instructions
Validate block.json or theme.json files against WordPress schemas. Checks required fields, valid values, attribute definitions, supports features, and common mistakes. Type: 'block' for block.json, 'theme' for theme.json.
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": {
"json": "<json>",
"conversationId": "<conversationId>"
},
"name": "validate_block_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The JSON content of block.json or theme.json to validate. | |
| type | No | Type of JSON file: 'block' for block.json, 'theme' for theme.json. | block |
| revision | No | Revision number. | |
| artifactId | No | Artifact ID for tracking revisions. | |
| conversationId | Yes | The conversation ID obtained from learn_wordpress_api. |