Drupal is a registered trademark of Dries Buytaert
drupal 11.4.1 Update released for Drupal core (11.4.1)! drupal 11.4.0 Update released for Drupal core (11.4.0)! drupal 10.6.12 Update released for Drupal core (10.6.12)! drupal 11.3.13 Update released for Drupal core (11.3.13)! drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)!

ai_playwright

No security coverage
View on drupal.org

Gives Drupal AI Agents eyes on a rendered page. AI Playwright opens a page of your site in a real headless browser (Playwright / Chromium) and hands the AI Agent a screenshot, the page title, the visible text, and any console errors — so the Drupal Canvas AI assistant can look at what it builds and verify or refine it, instead of building blind. It works almost as if the agent were using the Playwright MCP, but from inside Drupal as an AI Agent tool.

The idea started as a plugin inside Display Builder AI; this module lifts it out into a small, standalone tool for Drupal Canvas and Drupal Canvas AI Agents. Config-driven and framework-agnostic.

What it provides

  • an AI Agent toolBrowser preview (Playwright) — that captures a page and returns a screenshot file id (pass it to describe_image to "see" it), the title, text, and console errors, and
  • a settings page for the internal base URL, the Node binary, the timeout, and whether off-site URLs are allowed.

Requirements

  • Drupal ^11.2
  • AI (Drupal AI) and AI Agents
  • Drupal core file
  • On the server: Node.js 18+ and Playwright with Chromium

Security

The tool opens an authenticated browser as the acting user, so it sees the same content that user can. It is gated on the Use the AI Playwright browser tool permission, targets this site only unless an administrator enables off-site URLs, and passes every argument as an argv array — never an interpolated shell string.

Documentation

https://project.pages.drupalcode.org/ai_playwright/

Activity

Total releases
1
First release
Jul 2026
Latest release
4 hours ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
1.0.x-dev Dev Jul 5, 2026