Playwright

Download 0
Last updated Sep 5, 2026

playwright-input

Types text into one field of an open browser session and returns the screen afterwards.

For anything a credential profile holds - an account, a password, a one-time code - use playwright-login instead. It fills the field by naming the key, so the value never appears in the query or its log, which typing it here would.

A read-only session refuses this: typing is how a form gets changed.

playwright-input session-id=VALUE ref=VALUE text=VALUE [screenshot=VALUE]
session-id=VALUE
Required. Browser session to type in. e.g. the session_id returned by playwright-open
ref=VALUE
Required. Element to type into, named by a ref from the last observation. Every reading reassigns refs, so take it from the most recent one. e.g. e45
text=VALUE
Required. What to put in the field. e.g. 192.168.10.0/24
screenshot=VALUE
Optional. Store a screenshot of the resulting screen. t by default. e.g. f

Output Fields

FieldTypeNameDescription
session_idStringSession ide.g. 6f1c2a08-6c1e-4a1b-9a5e-9b2f0d3c7e11
refStringElement refe.g. e45
targetStringTarget elementSnapshot line of the element acted on. e.g. - button "Save" [ref=e45]
resultStringResultWhat the server reported for the action. e.g. Ran Playwright code
errorStringErrorSet when the site refused the action, so the row arrives instead of the query failing. e.g. click blocked: another element covers this one
urlStringURL after actione.g. https://fw.example.com/policy/edit?id=12
titleStringPage title after actione.g. Edit policy - Firewall Console
element_countIntegerElement countAddressable elements on the screen the action landed on. e.g. 108
screenshot_guidStringScreenshot file guide.g. 3f2b8c10-5d4a-4e2f-8c7b-1a2b3c4d5e6f
screenshot_urlStringScreenshot URLServed inline, so an answer can embed it as ![caption](url). e.g. /files/3f2b8c10-5d4a-4e2f-8c7b-1a2b3c4d5e6f
sonar_urlStringFile store URLReadable by sonar-ai-ask-image. e.g. sonar://3f2b8c10-5d4a-4e2f-8c7b-1a2b3c4d5e6f
observationStringObservationAccessibility snapshot of the screen after the action, with fresh refs - act on one of these rather than observing again. e.g. - button "Save" [ref=e45]