pilot_element_state
Before interacting with an element, confirm its state (visible, enabled, checked, etc.) with a boolean response.
Instructions
Check the current state of an element — whether it is visible, hidden, enabled, disabled, checked, editable, or focused. Use when the user wants to verify an element's condition before interacting with it, check if a button is disabled, confirm a checkbox is checked, or debug why an interaction is failing.
Parameters:
ref: Element reference from snapshot (e.g., "@e3") or CSS selector
property: The state to check — "visible", "hidden", "enabled", "disabled", "checked", "editable", or "focused"
Returns: Boolean string "true" or "false" indicating the element's state for the requested property.
Errors:
"Element not found": The ref is stale. Run pilot_snapshot to get fresh refs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref or CSS selector | |
| property | Yes | State to check |