agentql

v1.0.8
com.mcparmory/agentql Checked 2 days ago Published 6 months ago

Query 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.

ParameterTypeDescription
content-type *stringMIME type of the request body, required to correctly parse the payload.
browser_profilestringDetermines the browser profile used for the session: 'light' uses a fast headless browser, 'stealth' applies anti-detection techniques for bot-protected pages.
htmlstringRaw HTML content of the webpage to query, used as an alternative to providing a live URL.
is_screenshot_enabledbooleanWhen 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_enabledbooleanWhen enabled, the browser scrolls to the bottom of the page before capturing the snapshot, useful for triggering lazy-loaded content.
modestringControls the response generation strategy: 'fast' prioritizes speed, 'standard' prioritizes accuracy and completeness.
promptstringA natural language description of the data to extract, used to auto-generate an AgentQL query when no explicit query is provided.
proxyOptional proxy configuration to route the browser session through a specific proxy server, useful for geo-restricted or access-controlled pages.
querystringAn 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.
urlstringThe fully qualified URL of the webpage to load and query. Either url or html must be provided as the data source.
wait_forintegerNumber 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.

ParameterTypeDescription
browser_profilestringThe 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_presetstringThe operating system user agent preset the browser will identify as, affecting how websites perceive the client environment.
inactivity_timeout_secondsintegerHow 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…
proxyProxy server configuration to route browser traffic through for this session, such as host, port, protocol, and credentials.
shutdown_modestringControls 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_idstringAn 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.

ParameterTypeDescription
end_beforestringReturn only sessions that ended before this timestamp, specified in ISO 8601 date-time format.
limitintegerMaximum number of session records to return per page; must be between 1 and 1000.
pageintegerPage number to retrieve for paginated results; must be 1 or greater.
session_idstringFilter results to a specific browser session by its unique session identifier.
start_afterstringReturn only sessions that started after this timestamp, specified in ISO 8601 date-time format.
statusstringFilter sessions by their current lifecycle status; use 'running' for active sessions or 'ended' for completed sessions.
sub_user_idstringFilter results to only include sessions belonging to a specific sub-user under the authenticated account.