DocsDevelopers

Agent capability reference

Everything the AI agent can do, as registered capabilities — builder actions and WordPress actions — with their risk and which ones always ask first.

The AI agent can only act through capabilities: explicitly registered actions, each with a schema for its inputs, the WordPress permission it needs, a risk level (low, medium or high), and whether it must always be confirmed. Reads run freely within the signed-in person’s permissions; changes go through approval, restore points, checks and the activity log.

  • Low risk runs without asking (reading, and small, local changes).
  • Medium risk changes that reach many things are shown as a plan or preview first.
  • High risk, and anything marked “always asks first”, waits for a click in the builder.

Your site’s Native AI → AI → Capabilities shows the list for the features that are on. Switching a feature off removes its capabilities.

Builder capabilities#

41 capabilities that work on pages, templates and the design system. They run in the builder, where their changes are previewed, applied as one undo step and saved:

CapabilityNameRiskWhat it does
builder.get_page_structureRead a page's structurelowOutline of a document: every element with id, type, classes, text and local styles.
builder.get_elementsRead elementslowExact JSON of elements: props, styles, classes, attributes, children.
builder.find_elementsFind elementslowFind elements in a document by text, type or class.
builder.inspect_scopeInspect where styles come fromlowWhere an element's style values come from (local, class, theme style) and how far each place reaches.
builder.inspect_siteSearch the whole sitelowFind elements across every page, template and Global Block by type, text, value, class or pattern, and where the design system uses a value; suggests the shared level for a change.
builder.get_element_docsElement referencelowProps, parts, presets and guidance of element types.
builder.get_element_capabilitiesElement capabilitieslowWhat each element type can do (Design Engine reference).
builder.lintCheck a pagelowAccessibility and quality checks for a document.
builder.validate_designValidate a designlowDeterministic design checks: values, tokens, contrast, phone widths, links, media.
design.get_classesRead classeslowStyle rules of global classes.
design.get_tokensRead design tokenslowThe design system's tokens with their values.
design.get_patternsDesign patternslowLayout patterns and techniques the Design Engine knows.
media.find_iconsFind iconslowSearch the icon set.
media.get_libraryBrowse the Media LibrarylowImages already in the Media Library.
media.find_imagesFind imageslowSearch free stock photos for an image.
templates.listList templateslowEvery template (headers, footers, single, archive, search, 404, popups, Global Blocks) with where it applies and whether it's on.
forms.listList formslowEvery native form on the loaded documents, with its fields and what happens after a submission.
builder.inspect_layoutMeasure the layoutlowMeasure the rendered page in the editor: boxes, overflow, overlap, per breakpoint.
data.run_queryRun a querylowRun a Query Loop query on the site and see what it returns.
data.inspect_sourceInspect a data sourcelowRecords and fields a data source returns (requests run in WordPress; no credentials leave it).
forms.list_integration_optionsIntegration listslowLists a connected integration offers for a form action (channels, lists, fields).
builder.apply_changesApply changesmediumApply a batch of validated ops (insert, update, style, classes, move, delete, tokens, classes, documents, menus) as one undoable change.
builder.propose_changesPropose a broad changemediumShow a change plan for a broad edit (many elements, pages or the design system) and apply what the user chooses, as one undoable change.
builder.run_commandRun a builder commandmediumThe editor's own commands: duplicate, move, wrap, copy or reset styles, hide or show, save or detach a Global Block.
builder.create_elementCreate an elementmediumInsert an element (with children) into a container.
builder.update_elementUpdate an elementmediumChange an element's content, attributes or label.
builder.move_elementMove an elementmediumMove an element to another container or position.
builder.delete_elementDelete an elementmediumDelete an element and its children (undoable).
builder.set_styleSet a stylemediumSet or remove style properties on one element at one breakpoint and selector.
builder.set_responsive_styleSet responsive stylesmediumSet an element's styles for several breakpoints at once.
builder.set_theme_styleChange a Theme StylemediumChange the Theme Style of an element type (every button, heading…) — the highest shared level for a look.
builder.set_class_styleChange a classmediumChange a shared class's styles (everything with the class changes).
builder.update_tokenChange a design tokenmediumChange a design token's value (every use changes).
builder.create_global_blockCreate a Global BlockmediumTurn an element into a reusable Global Block (it becomes an instance of the block).
templates.createCreate a templatemediumCreate a site template (header, footer, single, archive, search, 404) as a draft, with where it applies.
templates.update_conditionsChange where a template appliesmediumChange a template's display conditions and priority.
templates.set_enabledSwitch a template on or offmediumSwitch a template off (kept, never used) or back on.
forms.createCreate a formmediumInsert a native form with its fields, success state and actions.
forms.add_actionAdd a form actionmediumAdd what happens after a submission (email, message, redirect, integration…) to a form.
media.use_imageUse an imagemediumImport an image into the Media Library and place it.
media.generate_imageGenerate an imagelowGenerate an image with AI (it's placed with use_image).

WordPress capabilities#

Actions that run in WordPress, in the signed-in person’s own session:

Core (30)

CapabilityWhat it doesAlways asks first
site.get_infoRead site information
site.get_modelRead the site model
site.list_recent_changesList recent changes
site.create_restore_pointCreate a restore point
site.list_restore_pointsList restore points
site.restoreRestore a restore pointYes
wordpress.list_post_typesList post types
wordpress.find_postsFind posts
wordpress.get_postRead a post
wordpress.create_postCreate a post
wordpress.update_postUpdate a post
wordpress.trash_postMove a post to the trashYes
wordpress.restore_postRestore a post from the trash
wordpress.list_taxonomiesList taxonomies
wordpress.list_termsList terms
wordpress.list_usersList users
wordpress.list_pluginsList plugins
wordpress.list_scheduled_tasksList scheduled tasks
wordpress.get_settingsRead WordPress settings
wordpress.list_mediaSearch the Media Library
templates.which_appliesWhich template applies
forms.get_statsForm statistics
features.listList features
features.enableSwitch a feature onYes
features.disableSwitch a feature offYes
platform.list_jobsList background jobs
platform.get_jobRead a background job
platform.read_logRead the platform log
platform.list_notificationsList notifications
agent.list_activityList AI activity

Code Snippets (when on) (8)

CapabilityWhat it doesAlways asks first
snippets.listList code snippets
snippets.getRead a code snippet
snippets.checkCheck code
snippets.createCreate a code snippet (as a draft)
snippets.updateUpdate a code snippet
snippets.enableActivate a code snippetYes
snippets.disableTurn a code snippet off
snippets.trashMove a code snippet to the trash

Site Reports (11)

CapabilityWhat it doesAlways asks first
reports.get_site_statusRead the website’s status
reports.get_activityRead the activity record
reports.get_content_changesRead content changes
reports.get_update_historyRead update history
reports.get_errorsRead errors and failures
reports.get_healthRead website health checks
reports.generateGenerate a report
reports.get_latestRead the latest report
reports.get_reportRead a report
reports.compare_periodsCompare two periods
reports.list_historicalList generated reports

Analytics (when on) (28)

CapabilityWhat it doesAlways asks first
analytics.get_overviewRead the analytics overview
analytics.get_timeseriesRead analytics over time
analytics.get_top_pagesRead the top pages
analytics.get_page_performanceRead one page’s analytics
analytics.get_sourcesRead traffic sources
analytics.get_devicesRead devices, browsers and systems
analytics.get_geographyRead visitors’ countries
analytics.get_eventsRead events
analytics.get_conversionsRead conversions and goals
analytics.get_formsRead form analytics
analytics.get_popupsRead popup analytics
analytics.get_404sRead missing pages (404s)
analytics.get_searchesRead site searches
analytics.get_linksRead outbound links and downloads
analytics.get_contentRead content performance
analytics.get_realtimeRead real-time activity
analytics.compare_periodsCompare two periods
analytics.get_insightsRead analytics insights
analytics.list_goalsList conversion goals
analytics.get_settingsRead analytics settings
analytics.create_goalCreate a conversion goal
analytics.update_goalChange a conversion goal
analytics.delete_goalDelete a conversion goalYes
analytics.restore_goalRestore a deleted goal
analytics.set_trackingPause or resume trackingYes
analytics.set_retentionChange how long analytics data is keptYes
analytics.update_settingsChange analytics settingsYes
analytics.reset_dataDelete all analytics dataYes

Adding capabilities#

Plugins and add-ons can register their own capabilities on the nativeai_agent_capabilities action, with the same schema, permission, risk and confirmation rules. The agent discovers them without any change on the AI side.