File size: 623 Bytes
6a7089a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # Fill
Set an input value directly without relying on the same event sequence as `type`.
```bash
curl -X POST http://localhost:9867/action \
-H "Content-Type: application/json" \
-d '{"kind":"fill","ref":"e8","text":"ada@example.com"}'
# CLI Alternative
pinchtab fill e8 "ada@example.com"
# Response
{
"success": true,
"result": {
"success": true
}
}
```
Notes:
- the top-level CLI also accepts a selector form: `pinchtab fill 'input[name=email]' "ada@example.com"`
- for the raw HTTP action endpoint, selectors use `selector`, not `ref`
## Related Pages
- [Type](./type.md)
- [Snapshot](./snapshot.md)
|