Skip to content

Reading your site ​

With the default Level 1 exposure, an assistant can read everything about your site's structure and content, but change nothing.

Structure ​

  • The whole model at once: every post type, taxonomy and fieldset, in one call. This is how an assistant gets its bearings.
  • Search by name: find "phone" across every fieldset, field and post type.
  • The fields of a post type, taxonomy or users: every field that applies, merged across fieldsets, including which ones are hidden by conditional logic.
  • Field types, dynamic data paths and visibility rule types available on this site.
  • System status: which field types the site has, its requirements, and whether a configuration lock is on.
  • These docs, matching your installed version.

Content ​

  • Find posts, terms and users by type, status, author, taxonomy term, search text, or field values ("Books where isbn is not empty and publisher is empty").
  • Count them, optionally grouped by type, status, taxonomy or role.
  • Read one entry's field values.
  • Find files in the media library by name, type or the post they're attached to, including images with no alt text.
  • Read option page settings.
  • Find comments by post, comment type, status or field values, count them, and read one comment's field values.

Field values are read one entry at a time, on purpose: a search returns which entries match, and the assistant reads the ones it needs.

When a field isn't in the answer, the assistant is told why: it's empty, its conditional logic hides it on this entry, its fieldset's Locations leave this entry out, or no such field applies to this kind of entry. A field its conditions hide is still returned when it holds a value, because your site still shows that value.

Only simple fields can be used as filters. Lists, groups, repeaters, relational fields and galleries are stored as structured data, so the assistant has to read those values and filter them itself.

Checking before changing ​

Two read abilities let an assistant test ideas without saving anything:

  • Validate a configuration: check a proposed post type, taxonomy or fieldset, and get back every error.
  • Evaluate an expression: render a VX Script expression against a real post, to test a dynamic tag before using it.

What reading doesn't include ​

Password fields are never returned. User email addresses are only included when the assistant asks for them explicitly. Reading also returns the activity log, which contains earlier values of changed fields.

Technical details for LLMs
  • Grounding: vx-framework/get-site-blueprint (whole model + guidance block), vx-framework/search-site-model, vx-framework/get-object-fields (merged fields for one object, with shadowed / conditional flags), vx-framework/get-field-types (pass types / include_schemas for settings schemas and form_columns), vx-framework/get-dynamic-data-catalog (expressions and value types, one relation deep; a relation cut off carries expand, the path that lists it; depth sets how deep, detail: full returns whole entries, include adds modifiers, groups or the picker tree), vx-framework/list-visibility-rules, vx-framework/get-system-status, vx-framework/search-docs / vx-framework/list-docs / vx-framework/get-doc, vx-framework/describe-abilities (full write contracts).
  • Geo: vx-framework/get-geo-settings (which geocoder is configured, and whether address search will resolve).
  • Config reads: vx-framework/list-* / vx-framework/get-* for post types, taxonomies, fieldsets (config_hash); config-as-code status vx-framework/get-config-status, vx-framework/get-config-source, vx-framework/get-config-conflicts, vx-framework/get-config-diff, vx-framework/export-config; vx-framework/list-revisions, vx-framework/get-revision; vx-framework/list-field-migrations, vx-framework/preview-field-migration; vx-framework/list-changes.
  • Content reads: vx-framework/query-posts, vx-framework/count-posts, vx-framework/get-post-values; vx-framework/query-terms, vx-framework/count-terms, vx-framework/get-term-values; vx-framework/query-users (include_email opt-in), vx-framework/count-users, vx-framework/get-user-values; vx-framework/query-media (see Images and files). Queries page with limit / offset and return next_offset until the last page.
  • Option pages and dictionaries: vx-framework/list-option-pages, vx-framework/get-option-page, vx-framework/get-option-page-values; vx-framework/list-dictionaries, vx-framework/get-dictionary-entries. A dictionary passed to vx-framework/validate-config is always scope: envelope.
  • Comments: vx-framework/list-comment-types, vx-framework/get-comment-type; vx-framework/query-comments (type, status, post, post_type, parent, author, search, ids; field_filters need exactly one type; include_email opt-in), vx-framework/count-comments (group_by: type | status), vx-framework/get-comment-values. Block-editor notes are never returned.
  • Value reads are keyed by field key; every missing field appears in omitted ({ field, reason, type, hint? }) with a reason: empty (use include_empty), hidden_by_conditions (empty, and its conditional logic hides it over the stored values, so writes to it are skipped), excluded_type, not_readable, no_output, truncated (re-read by naming it in fields). A key named in fields that the entry doesn't have is listed too: not_assigned (a fieldset targeting this kind of entry has it, but its Location rules leave this entry out or it is inactive; hint names the fieldset) or unknown_field (nothing targeting it has the key; hint points a REST alias at its field key and a dotted path at its top-level field). empty means nothing is stored: a Switcher listed there was never saved, while one saved off reads false. A hidden field holding a value is returned. relation_depth defaults to 0 (ids). vx-framework/get-post-values also returns comment_status on post types with comments support, and terms: the post's term ids for every taxonomy of its post type.
  • field_filters: [ { field, op, value? } ], ops =, !=, contains, >, <, empty, not_empty; all must match; empty also matches never-saved. Structured fields (lists, containers, ranges, relational and media fields) are refused with an explanation. Taxonomy assignments use terms.
  • Dry-run: vx-framework/validate-config ({ type, key?, config }; scope: object = partial update merged onto an existing object, scope: envelope = full definition). vx-framework/evaluate-expression.

Documentation for the VX Framework.