web_act
Runs actions against an open session and returns the resulting state. Actions: {navigate}, {click:{ref}}, {type:{ref,text,clear}}, {select:{ref,value}}, {press}, {scroll}, {wait}, {back}. The ref is the one controls gave you. It stops at the first failure and tells you where. $0.0005 per action.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page to process. | |
| json | No | For the `json` format: `prompt` and/or `schema`. | |
| wait | No | When to consider the page loaded: `until`, `selector`, `timeout`. | |
| maxAge | No | Accept an answer up to this many milliseconds old. A cache hit costs $0.0002 instead of the format price. Leave it out to force a fresh render. | |
| actions | Yes | Actions, in order. | |
| formats | No | Outputs you want in the same response. `controls` is the map of what can be clicked; `elements` needs `selectors`; `json` needs `json.prompt`. | |
| selectors | No | CSS selectors for `elements`. | |
| sessionId | Yes | The one web_session_open returned. |