web_session_open
Opens a browser on a page and leaves it open, returning the map of controls. Use it when something has to be FILLED IN or CLICKED, not just read: inside the session the controls references keep working and you can act on the same state. $0.005 plus the outputs. Close it with web_session_close when you are done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 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. | |
| 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`. |