session_fill_selector
Fill a text field by CSS selector on the current browser session page, correctly updating React/Vue-controlled inputs.
Instructions
Fill a text field on the session's current page, located by a CSS selector.
Uses Playwright's fill(), which drives React/Vue-controlled inputs correctly
(setting the DOM value directly does not). Requires a session opened with
profile_start first. selector is a CSS selector, not an XPath.
Args: name: identity name, exactly as profiles_list reports it. selector: CSS selector for the input to fill. text: the text to put in the field, replacing whatever was there. nth: optional, 0-based — which element to use when the selector matches several (see session_click_selector).
Returns {ok: true}. Fails with a readable message if the session is not open (409 — call profile_start first), the identity does not exist (404), the selector matches several elements and no nth was given, or the selector never matches / the fill times out (502).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"selector": "<selector>",
"text": "<text>"
},
"name": "session_fill_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | ||
| name | Yes | ||
| text | Yes | ||
| selector | Yes |