Developer tools · playground.wordpress.net

WordPress Playground

WordPress running in the browser. Agents can run PHP, read and write files, make REST requests and navigate the site.

Ask an agent to

  • Create a draft post via the REST API
  • Write a small plugin file and activate it
  • Show the WordPress and PHP versions running

17 tools

  • playground_delete_directory

    Delete a directory from the WordPress virtual filesystem. WARNING: Deletion is permanent and cannot be undone. By default (recursive=false), the directory must be empty or the call will fail.…

    path: string, recursive: boolean?

  • playground_delete_file

    Delete a file from the WordPress virtual filesystem. WARNING: Deletion is permanent and cannot be undone. Returns an error if the file does not exist — use playground_file_exists first if deletion is…

    path: string

  • playground_execute_php

    Run arbitrary PHP code in WordPress Playground and return the output. WordPress is NOT bootstrapped automatically. To use WordPress functions, start your code…

    code: string

  • playground_file_existsread-only

    Check whether a file or directory exists in the WordPress virtual filesystem.

    path: string

  • playground_get_current_urlread-only

    Get the current URL path of the WordPress site displayed in Playground. For additional metadata (WordPress version, PHP version, document root), use playground_get_site_info instead.

  • playground_get_site_inforead-only

    Get metadata about the running WordPress instance: current URL, document root, site URL, WordPress version, and PHP version. Use this when you need version information or the document root path. For just…

  • playground_get_website_urlread-only

    Return the URL the user must open in their browser to use WordPress Playground with this MCP server. Use this tool whenever you need to send the user to Playground or open it autonomously — always obtain…

  • playground_list_emailsread-only

    List every email the WordPress site has sent so far. Playground has no mail server. Each message WordPress attempts to send (password resets, comment notifications, wp_mail() calls…) is captured instead of…

  • playground_list_filesread-only

    List files and directories at a given path in the WordPress virtual filesystem. Returns a flat, non-recursive listing of the immediate contents. To explore subdirectories, call this tool again with the…

    path: string

  • playground_list_sitesread-only

    List all WordPress Playground sites available. Call this before any other playground tool — it returns the siteId required by every other operation. If this returns no sites, the user may need to open…

  • playground_mkdir

    Create a directory (and all required parent directories) in the WordPress virtual filesystem. Call this before playground_write_file when writing to a path whose parent directories do not yet exist.

    path: string

  • playground_navigate

    Navigate to a URL path in WordPress Playground and return the final URL after any redirects. Examples: "/wp-admin/", "/wp-login.php", "/". On 404 or error pages, navigation still succeeds from the…

    path: string

  • playground_read_fileread-only

    Read a file from the WordPress virtual filesystem. Returns the file contents as text.

    path: string

  • playground_rename_site

    Rename a WordPress Playground site. Updates the display name shown in the browser UI.

    newName: string

  • playground_request

    Make an HTTP request to the WordPress site running in Playground. REST API requests (/wp-json/* or ?rest_route=) are automatically authenticated with a valid nonce — no manual auth needed. Tool…

    url: string, method: string?, headers: object?, body?

  • playground_save_in_browser

    Save a temporary WordPress Playground site to browser storage so it survives page reloads. Safe to call even if the site is already saved (no-op). Sites start as temporary by default and are lost when…

  • playground_write_file

    Write content to a file in the WordPress virtual filesystem. WARNING: Overwrites the entire file — existing content is permanently lost. Read the file first with playground_read_file if you need to…

    path: string, contents: string

Tools
17
Registered with
JavaScript
Re-checked
Oct 24, 2026

Tool names and descriptions are what playground.wordpress.net/ registered when we loaded it in Chrome 154 on Browser Use Cloud. The summary and the “ask an agent” lines are AI-written from them. To call the tools yourself, see Chrome’s WebMCP docs. How we found it.

More developer tools sites

All 1,393 developer tools sites →