@prc/block-tables registers one WordPress Ability for AI table generation when the WordPress AI integration is active.
Ability: prc-ai/generate-tabular-data
| Field | Value |
|---|---|
| Name | prc-ai/generate-tabular-data |
| Label | Generate Tabular Data |
| Category | data-retrieval |
| Permission | manage_options (via site-scoped callback) |
| REST exposure | show_in_rest: true |
| MCP | public tool |
Description: Generates tabular data in markdown from a prompt against Pew Research Center content.
Source: includes/ai-features/class-generate-tabular-data.php
Input
Reference
4 fields
Input properties
Typed options, defaults, and constraints in one scannable reference.
-
data_descriptionstring required -
Description of data to retrieve and format as a table.
-
fromnumber -
Start year of the data range.
-
tonumber -
End year of the data range.
-
site_idnumber -
Optional multisite blog ID. Defaults to the content site. Returns plugin_inactive_on_site when inactive on the target.
No fields match this filter.
Output
Reference
2 fields
Output properties
Typed options, defaults, and constraints in one scannable reference.
-
tablestring -
Generated tabular data in markdown.
-
errorstring -
Error message when generation fails.
No fields match this filter.
Side effects
Read-only annotations (readonly: true). Searches content and calls AI; does not write posts.