Get WordPress Page
wp_get_pageFetch a single WordPress page by ID or slug and get its full content as plain text, with HTML stripped. Choose markdown or JSON output.
Instructions
Fetch a single page by ID or slug. Returns the full content (rendered to plain text — HTML stripped).
At least one of 'id' or 'slug' must be provided.
Args:
id (number): Numeric page ID. Mutually exclusive with slug.
slug (string): URL handle of the page (e.g. "about", "concerts"). Mutually exclusive with id.
response_format (enum): markdown | json. Default 'markdown'.
Returns: A single WPContentItem object with full content_preview expanded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Numeric page ID. Either id OR slug is required. | |
| slug | No | Page slug (URL handle). Either id OR slug is required. | |
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |