Preview tool: auto-fill form fields with test data (like Chrome autofill)

Resolved 💬 1 comment Opened May 20, 2026 by cloverink Closed Jun 20, 2026

Feature Request

Problem

When testing forms in the Claude Preview tool, there is no way to auto-fill form fields with realistic test data. Currently, you have to manually type or use on each field one by one, which is tedious for forms with many inputs (e.g., registration forms, survey builders, checkout flows).

Chrome browser has built-in autofill that populates name, email, address, phone, etc. in one action. The Preview tool lacks this capability.

Proposed Solution

Add an auto-fill feature to the Preview tool that can:

  1. Detect form fields on the current page (name, email, phone, address, etc.) based on field attributes (, , , , )
  2. Fill all detected fields with realistic test data in one action
  3. Support custom profiles — allow specifying a data profile (e.g., locale, language) so test data matches the app context

Example API

Why This Matters

  • Speed: Forms are one of the most common things to test — autofill would save significant time
  • Accuracy: Reduces typos and formatting issues when filling test data manually
  • Realistic testing: Generated data (valid phone formats, real-looking addresses) catches edge cases that "test123" never will

Alternatives Considered

  • Using with JavaScript to fill forms — works but requires writing custom selectors for each form
  • Using on each field — functional but slow for large forms

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗