wpnav_gutenberg_introspect
Discover available Gutenberg blocks, patterns, and attributes to identify what content elements you can create in WordPress.
Instructions
Introspect Gutenberg capabilities: available blocks, patterns, and attributes. Use this to discover what blocks you can create.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/gutenberg/index.ts:36-42 (handler)The handler function for the wpnav_gutenberg_introspect tool. It makes a request to the WordPress REST API endpoint '/wpnav/v1/gutenberg/introspect' and returns the result as formatted JSON text.handler: async (args, context) => { const result = await context.wpRequest('/wpnav/v1/gutenberg/introspect'); return { content: [{ type: 'text', text: context.clampText(JSON.stringify(result, null, 2)) }], }; },
- src/tools/gutenberg/index.ts:30-34 (schema)Input schema for the tool, which requires no parameters.inputSchema: { type: 'object', properties: {}, required: [], },
- src/tools/gutenberg/index.ts:26-44 (registration)Full registration of the wpnav_gutenberg_introspect tool in the tool registry, including definition, handler, and category.toolRegistry.register({ definition: { name: 'wpnav_gutenberg_introspect', description: 'Introspect Gutenberg capabilities: available blocks, patterns, and attributes. Use this to discover what blocks you can create.', inputSchema: { type: 'object', properties: {}, required: [], }, }, handler: async (args, context) => { const result = await context.wpRequest('/wpnav/v1/gutenberg/introspect'); return { content: [{ type: 'text', text: context.clampText(JSON.stringify(result, null, 2)) }], }; }, category: ToolCategory.CONTENT, });