Fill
Set an input value directly without relying on the same event sequence as type.
pinchtab fill e8 "ada@pinchtab.com"curl -X POST http://localhost:9867/action \ -H "Content-Type: application/json" \ -d '{"kind":"fill","ref":"e8","text":"ada@pinchtab.com"}'
Response
OK CLI Flags
| Flag | Description |
|---|---|
--snap | Output interactive snapshot after fill |
--snap-diff | Output snapshot diff after fill |
--text | Output page text after fill |
--json | Full JSON response |
--tab | Target specific tab |
Examples
pinchtab fill e8 "ada@pinchtab.com" # Fill by refpinchtab fill "#email" "user@example.com" # Fill by CSSpinchtab fill "text:Email" "test@test.com" # Fill by text selectorpinchtab fill e8 "value" --snap # Fill and show snapshot
pinchtab fill e8 "ada@pinchtab.com" # Fill by refpinchtab fill "#email" "user@example.com" # Fill by CSSpinchtab fill "text:Email" "test@test.com" # Fill by text selectorpinchtab fill e8 "value" --snap # Fill and show snapshot
Notes
- Accepts unified selectors:
e8,#email,xpath://...,text:Email - Refs for iframe descendants can be filled directly without frame switch
- Selector lookup is limited to current frame scope (default:
main) - Use
/framebefore selector-based iframe fills - Missing selectors fail immediately; use
pinchtab waitfirst for async fields - For API, use
selectorfield for CSS/XPath/text selectors