Composite Actions
bap act is the killer feature of BAP CLI. It batches multiple browser steps into a single command and a single server call.
Syntax
Examples
Supported Actions
The following actions can be used in composite steps:| Action | Syntax | Description |
|---|---|---|
click | click:selector | Click an element |
fill | fill:selector=value | Fill an input field |
type | type:text | Type text into focused element |
press | press:key | Press a keyboard key |
select | select:selector=value | Select a dropdown option |
check | check:selector | Check a checkbox |
uncheck | uncheck:selector | Uncheck a checkbox |
hover | hover:selector | Hover over an element |
goto | goto:url | Navigate to a URL |
Fused Observation
Combineact with --observe to get the resulting page state in the same server call:
Perform a post-observation after all steps complete. Returns updated page elements.
Response tier for the fused observation:
full, interactive, or minimal.Selector Syntax in Steps
Within composite steps, the parser splits on the first: for the action name, then scans right-to-left for an unquoted = to separate the selector from the value.
Comparison
| Approach | Commands | Server calls | LLM reasoning cycles |
|---|---|---|---|
| Individual commands | 3 | 3 | 3 |
bap act | 1 | 1 | 1 |
bap act --observe | 1 | 1 | 1 (with page state) |