Guide

Block Tables Abilities

@prc/block-tables registers one WordPress Ability for AI table generation when the WordPress AI integration is active.

Ability: prc-ai/generate-tabular-data

FieldValue
Nameprc-ai/generate-tabular-data
LabelGenerate Tabular Data
Categorydata-retrieval
Permissionmanage_options (via site-scoped callback)
REST exposureshow_in_rest: true
MCPpublic 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

Input properties

Typed options, defaults, and constraints in one scannable reference.
4 fields
data_description string required
Description of data to retrieve and format as a table.
from number
Start year of the data range.
to number
End year of the data range.
site_id number
Optional multisite blog ID. Defaults to the content site. Returns plugin_inactive_on_site when inactive on the target.

Output

Reference

Output properties

Typed options, defaults, and constraints in one scannable reference.
2 fields
table string
Generated tabular data in markdown.
error string
Error message when generation fails.

Side effects

Read-only annotations (readonly: true). Searches content and calls AI; does not write posts.

Was this helpful?