fill_field
Type values into form fields, using direct fill or simulated keystrokes to pass trusted-event checks, with optional Tab to move to the next field.
Instructions
Type a value into a form field.
Standard mode (use_keyboard=False, default): sets the field value
directly. Works for plain <input> and <textarea> elements.
Keyboard mode (use_keyboard=True): simulates real keystrokes
(keydown → keypress → input → keyup per character). Use this for:
contenteditabledivs (X/Twitter post box, Notion, Slack, etc.)React / Vue inputs that ignore programmatic
.valuechangesSites that check for "trusted" input events to prevent botting
For X (Twitter): click the "What's happening?" box first, then call
fill_field with use_keyboard=True. This fires the React-compatible
events that enable the Post button.
Args: selector: CSS selector for the input or contenteditable element. value: Text to type. Never include \n — it will be stripped. A trailing \n is treated as Tab (advance to next field). press_tab: Press Tab after filling to move focus to the next field. use_keyboard: Simulate real keystrokes instead of direct fill. delay_ms: Milliseconds between keystrokes in keyboard mode. 0 = fast (default). Use 30–80 for sites that check typing cadence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| delay_ms | No | ||
| selector | Yes | ||
| press_tab | No | ||
| use_keyboard | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |