learn_wordpress_api
Call first to initialize a WordPress API session, get the required conversationId, and reuse it to load contexts such as REST API, hooks, blocks, plugins, or WooCommerce.
Instructions
🚨 MANDATORY FIRST STEP: Call this tool BEFORE any other WordPress tool. Returns a conversationId required for all subsequent tool calls. Call multiple times with the same conversationId to load different API contexts. Valid APIs: rest-api, hooks, blocks, themes, plugins, woocommerce, wp-cli, gutenberg, multisite, custom-fields.
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": {
"api": "<api>"
},
"name": "learn_wordpress_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api | Yes | The WordPress API domain to learn about. Valid values: - rest-api: WordPress REST API for CRUD operations - hooks: Actions and Filters system - blocks: Block development (Gutenberg blocks, block.json) - themes: Theme development (classic & block themes, theme.json) - plugins: Plugin development - woocommerce: WooCommerce development and WC REST API - wp-cli: WP-CLI command-line management - gutenberg: Block Editor / Full Site Editing internals - multisite: WordPress Multisite network - custom-fields: Custom fields, post meta, user meta, options API | |
| conversationId | No | Pass an existing conversationId to add a new API context to the current conversation. Omit for the first call to create a new conversation. |