agentql.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.
Browser Sessions
createRemoteBrowserSession
browserSessions.createRemoteBrowserSession
Tool to create a remote browser session. Use when you need to run browser automation on remote infrastructure.
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
browser_ua_preset | windows | macos | linux | No | — |
browser_profile | light | stealth | tf-browser | No | — |
inactivity_timeout_seconds | number | No | — |
proxy | object | No | — |
shutdown_mode | on_disconnect | on_inactivity_timeout | No | — |
sub_user_id | string | No | — |
branding | boolean | No | — |
browser_startup_url | string | about:blank | No | — |
proxy full type
proxy full type
| Name | Type | Required | Description |
|---|---|---|---|
session_id | string | Yes | — |
cdp_url | string | Yes | — |
base_url | string | Yes | — |
Data
query
data.query
Tool to query structured data as JSON from a web page using an AgentQL query or natural language prompt. Use after defining your query or prompt and a URL or HTML.
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
query | string | No | — |
prompt | string | No | — |
url | string | No | — |
html | string | No | — |
params | object | No | — |
params full type
params full type
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | — |
metadata | object | No | — |
data full type
data full type
metadata full type
metadata full type
queryDocument
data.queryDocument
Tool to extract structured data from PDF or image documents using an AgentQL query or natural language prompt. Accepts a file upload plus query or prompt.
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
file | custom | Yes | — |
fileName | string | No | — |
query | string | No | — |
prompt | string | No | — |
params | object | No | — |
params full type
params full type
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | — |
metadata | object | No | — |
data full type
data full type
metadata full type
metadata full type
Usage
get
usage.get
Retrieves API usage statistics and subscription limits for the AgentQL account. Returns current billing cycle dates, lifetime usage limits, API key usage counts, and total account usage. Useful for monitoring quota consumption and planning usage. No parameters required - uses the authenticated API key from connection settings.
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | — |
metadata | object | No | — |
data full type
data full type
metadata full type
metadata full type