PinchTab icon

PinchTab

Control a browser via PinchTab — navigate, extract, click, screenshot

Fill

AI-generated

Summary

Fill an input element on a webpage with specified text directly, without simulating keypress events.

Inputs

  • Tab ID — Optional ID of the target browser tab; leave empty to target the active tab.
  • Element Ref or CSS Selector (required) — Identifier of the input element to fill, either as a PinchTab element reference (e.g., 'e5') or a CSS selector.
  • Text (required) — Text to input directly into the target element.

Output shape

A single JSON object containing the server's response indicating the success or failure of the fill action.

The output includes a JSON object parsed from the PinchTab server response. No binary data is returned.

Examples

Example 1: Fill the '#email' input field in the active tab with an email address.

Tab ID left empty (active tab), Element Ref or CSS Selector set to '#email', Text set to 'user@example.com'.

Links

Discussion