Problem/Motivation
AI Playwright needs its initial 1.0.x codebase. It is a small Drupal 11 module that gives Drupal AI Agents "eyes" on a rendered page: it provides an AI Agent tool (ai_playwright:browser_preview) that opens a page of the site in headless Chromium (Playwright, via a bundled Node script), captures a screenshot (saved as a managed file), the page title, the visible text and any console errors — so the Drupal Canvas AI assistant can see and verify what it builds instead of building blind. The idea was lifted out of a display_builder_ai plugin into this standalone, Canvas-oriented module. It is config-driven and framework-agnostic.
Steps to reproduce
N/A — this is a task to stand up the initial module codebase, not a bug report.
Proposed resolution
Commit the initial module scaffold on branch 1.0.x via an issue-fork merge request, get it reviewed, then release 1.0.x-dev (no version field exists yet on this brand-new project, so 1.0.x-dev is tracked here in the issue body instead).
The module was verified end to end on a fresh Drupal CMS ~2.0 site before opening the MR: the settings page, SSRF validation on the configured browser/target URL, status report Node.js detection, the module's permissions, an anonymous request correctly getting a 403, a live browser capture producing a real screenshot managed file, and the AI tool executing with its describe_image handoff.
AI-assistance disclosure: this module's initial scaffold was drafted with the help of Claude Code (Anthropic). Per the Drupal policy on the use of AI, all AI-generated code is reviewed by a human before it is merged.
Remaining tasks
- ✅ File an issue about this project
- ✅ Addition/Change/Update/Fix to this project
- ✅ Testing to ensure no regression
- ✅ Automated unit/functional testing coverage
- ✅ Developer Documentation support on feature change/addition
- − User Guide Documentation support on feature change/addition
- − UX/UI designer responsibilities
- ✅ Accessibility and Readability
- ✅ Reviewed by a human
- ✅ Code review by maintainers
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Update Release Notes
- ✅ Release
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- N/A
Issue fork ai_playwright-3608469
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
rajab natshah✅ Released ai_playwright-1.0.0-alpha1