Pages
The Pages tool provides comprehensive page management capabilities, including listing pages, retrieving metadata, updating SEO settings, and managing localized content across multi-language sites.
When to use
Use the Pages tool to:
- List all pages: Get an overview of all pages in a site
- Manage SEO: Update meta titles, descriptions, and Open Graph data
- Update page settings: Modify slugs, publishing status, and page configuration
- Work with localization: Retrieve and update content in secondary locales
- Audit pages: Check page structure, content, and metadata
Tool details
Tool name: data_pages_tool
Available actions
List pages
List all pages within a site with metadata including IDs, titles, and slugs.
Action: list_pages
Parameters:
Returns: Array of pages with basic metadata
Example usage:
Get page metadata
Retrieve comprehensive metadata for a specific page including SEO settings, Open Graph data, and publication status.
Action: get_page_metadata
Parameters:
Returns: Complete page metadata including:
- SEO title and description
- Open Graph title, description, and image
- Page slug
- Publishing status (draft/published)
- Last modified date
- Custom metadata
Example usage:
Update page settings
Modify page settings including SEO metadata, Open Graph data, slug, and publishing status.
Action: update_page_settings
Parameters:
Updatable fields:
title- Page title (SEO)description- Meta descriptionseoTitle- Custom SEO titleopenGraphTitle- OG title for social sharingopenGraphDescription- OG descriptionopenGraphImage- OG image URLslug- Page URL slugisHomePage- Whether this is the site’s home page
Example usage:
When updating SEO fields, ensure titles are under 60 characters and descriptions under 160 characters for optimal search engine display.
Get page content
Retrieve the complete content structure and data for a page, including all elements and their properties. Useful for localization workflows.
Action: get_page_content
Parameters:
Returns: Page content structure with all elements and properties
Example usage:
Getting page content returns extensive data. Use limit and offset parameters for large pages to prevent context overflow.
Update static content
Update content on static pages in secondary locales by modifying text nodes and property overrides.
Action: update_static_content
Parameters:
Example usage:
This action is specifically for localization. You must specify a secondary locale (not the primary locale).
Best practices
Always check current metadata before updates
Use get_page_metadata before updating to see current values and avoid overwriting important data.
Follow SEO best practices
- Keep titles under 60 characters
- Keep descriptions under 160 characters
- Use unique titles and descriptions for each page
- Include target keywords naturally
- Write compelling, actionable descriptions
Test slug changes carefully
Changing page slugs affects URLs and can break links. Update redirects when changing slugs on published pages.
Use localeId consistently
When working with multi-language sites, always specify the locale ID to ensure you’re updating the correct language version.
Paginate large content queries
Use limit and offset parameters when getting page content for pages with many elements to avoid overwhelming your AI agent’s context.
Limitations
- Localization:
update_static_contentonly works with secondary locales, not the primary locale - Static pages only: Content updates work on static pages; CMS template pages require different tools
- Publishing: Changes to page settings and content must be published to appear on the live site