agentql
v1.0.8Query webpages and extract structured data using natural language
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
query_webpage_data Query Webpage Data
Extracts structured data from a webpage using an AgentQL query or a natural language prompt. Accepts either a live URL or raw HTML as the data source.
| Parameter | Type | Description |
|---|---|---|
content-type * | string | MIME type of the request body, required to correctly parse the payload. |
browser_profile | string | Determines the browser profile used for the session: 'light' uses a fast headless browser, 'stealth' applies anti-detection techniques for bot-protected pages. |
html | string | Raw HTML content of the webpage to query, used as an alternative to providing a live URL. |
is_screenshot_enabled | boolean | When enabled, a screenshot of the page is captured during the query session, which may be useful for debugging or visual verification. |
is_scroll_to_bottom_enabled | boolean | When enabled, the browser scrolls to the bottom of the page before capturing the snapshot, useful for triggering lazy-loaded content. |
mode | string | Controls the response generation strategy: 'fast' prioritizes speed, 'standard' prioritizes accuracy and completeness. |
prompt | string | A natural language description of the data to extract, used to auto-generate an AgentQL query when no explicit query is provided. |
proxy | Optional proxy configuration to route the browser session through a specific proxy server, useful for geo-restricted or access-controlled pages. | |
query | string | An AgentQL (AQL) query string specifying the exact data fields to extract from the page. If omitted, a query will be auto-generated from the prompt. |
url | string | The fully qualified URL of the webpage to load and query. Either url or html must be provided as the data source. |
wait_for | integer | Number of seconds to wait for dynamic page content to load before capturing the snapshot. Maximum allowed wait time is 10 seconds. |
get_usage Get Usage
Retrieves current API key usage statistics and subscription details for the authenticated account. Useful for monitoring consumption limits and understanding remaining quota.
create_browser_session Create Browser Session
Creates a new Tetra browser session with configurable user agent, profile, proxy, and lifecycle settings. Returns session details needed to connect and interact with the browser.
| Parameter | Type | Description |
|---|---|---|
browser_profile | string | The browser profile determining capability and detection resistance: 'light' prioritizes speed with minimal overhead, 'stealth' enables full anti-detection features, and 'tf-browser' uses a custom TF… |
browser_ua_preset | string | The operating system user agent preset the browser will identify as, affecting how websites perceive the client environment. |
inactivity_timeout_seconds | integer | How long the session remains alive without active connections before being shut down, applicable when shutdown_mode is 'on_inactivity_timeout'. Accepts values between 5 seconds and 86400 seconds (24 h… |
proxy | Proxy server configuration to route browser traffic through for this session, such as host, port, protocol, and credentials. | |
shutdown_mode | string | Controls session teardown behavior on disconnect: 'on_disconnect' immediately stops the session when all connections close, while 'on_inactivity_timeout' keeps the session alive to allow reconnection… |
sub_user_id | string | An optional identifier used to associate this session with a specific sub-user within your account, useful for tracking and auditing sessions across multiple users. |
list_session_usage List Session Usage
Retrieve a paginated list of Tetra browser session usage records for the authenticated user, with optional filtering by user, session, time range, and status.
| Parameter | Type | Description |
|---|---|---|
end_before | string | Return only sessions that ended before this timestamp, specified in ISO 8601 date-time format. |
limit | integer | Maximum number of session records to return per page; must be between 1 and 1000. |
page | integer | Page number to retrieve for paginated results; must be 1 or greater. |
session_id | string | Filter results to a specific browser session by its unique session identifier. |
start_after | string | Return only sessions that started after this timestamp, specified in ISO 8601 date-time format. |
status | string | Filter sessions by their current lifecycle status; use 'running' for active sessions or 'ended' for completed sessions. |
sub_user_id | string | Filter results to only include sessions belonging to a specific sub-user under the authenticated account. |