cayu.tools.browser
Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.
BROWSER_FETCH_PLAYWRIGHT_VERSION
Section titled “BROWSER_FETCH_PLAYWRIGHT_VERSION”from cayu.tools import BROWSER_FETCH_PLAYWRIGHT_VERSIONBROWSER_FETCH_PLAYWRIGHT_VERSION = dict(PINNED_BROWSER_FETCH_WORKLOAD.component_versions)['playwright']Release source · Runtime guarantees · Capability guides
BROWSER_FETCH_PROTOCOL_VERSION
Section titled “BROWSER_FETCH_PROTOCOL_VERSION”from cayu.tools import BROWSER_FETCH_PROTOCOL_VERSIONBROWSER_FETCH_PROTOCOL_VERSION = PINNED_BROWSER_FETCH_WORKLOAD.protocol_versionRelease source · Runtime guarantees · Capability guides
BROWSER_FETCH_WORKER_VERSION
Section titled “BROWSER_FETCH_WORKER_VERSION”from cayu.tools import BROWSER_FETCH_WORKER_VERSIONBROWSER_FETCH_WORKER_VERSION = PINNED_BROWSER_FETCH_WORKLOAD.worker_versionRelease source · Runtime guarantees · Capability guides
BrowserWebFetchAdapter
Section titled “BrowserWebFetchAdapter”from cayu.tools import BrowserWebFetchAdapterExecute web_fetch through a compatible worker in an admitted runner.
Selection is explicit: construct WebFetchTool(adapter=...). This adapter
never imports Playwright in the host process and never falls back to the
trusted-process HTTP implementation.
init (method)
Section titled “init (method)”BrowserWebFetchAdapter.__init__(*, worker_command: Sequence[str]=DEFAULT_BROWSER_FETCH_WORKER_COMMAND, max_requests: int=DEFAULT_BROWSER_FETCH_MAX_REQUESTS, max_dom_nodes: int=DEFAULT_BROWSER_FETCH_MAX_DOM_NODES, expected_runner_candidate: str | None=None, expected_environment_authority: ExecutionEnvironmentAuthority | None=None, expected_workload_authority: RunnerWorkloadAuthority | None=None) -> Nonefetch (method)
Section titled “fetch (method)”async BrowserWebFetchAdapter.fetch(ctx: ToolContext, request: WebFetchAdapterRequest) -> ToolResultRelease source · Runtime guarantees · Capability guides
DEFAULT_BROWSER_FETCH_MAX_DOM_NODES
Section titled “DEFAULT_BROWSER_FETCH_MAX_DOM_NODES”from cayu.tools import DEFAULT_BROWSER_FETCH_MAX_DOM_NODESDEFAULT_BROWSER_FETCH_MAX_DOM_NODES = 10000Release source · Runtime guarantees · Capability guides
DEFAULT_BROWSER_FETCH_MAX_REQUESTS
Section titled “DEFAULT_BROWSER_FETCH_MAX_REQUESTS”from cayu.tools import DEFAULT_BROWSER_FETCH_MAX_REQUESTSDEFAULT_BROWSER_FETCH_MAX_REQUESTS = 128Release source · Runtime guarantees · Capability guides
DEFAULT_BROWSER_FETCH_WORKER_COMMAND
Section titled “DEFAULT_BROWSER_FETCH_WORKER_COMMAND”from cayu.tools import DEFAULT_BROWSER_FETCH_WORKER_COMMANDDEFAULT_BROWSER_FETCH_WORKER_COMMAND = PINNED_BROWSER_FETCH_WORKLOAD.commandRelease source · Runtime guarantees · Capability guides
MAX_BROWSER_FETCH_MAX_DOM_NODES
Section titled “MAX_BROWSER_FETCH_MAX_DOM_NODES”from cayu.tools import MAX_BROWSER_FETCH_MAX_DOM_NODESMAX_BROWSER_FETCH_MAX_DOM_NODES = 100000Release source · Runtime guarantees · Capability guides
MAX_BROWSER_FETCH_MAX_REQUESTS
Section titled “MAX_BROWSER_FETCH_MAX_REQUESTS”from cayu.tools import MAX_BROWSER_FETCH_MAX_REQUESTSMAX_BROWSER_FETCH_MAX_REQUESTS = 512Release source · Runtime guarantees · Capability guides
ScreenshotPageTool
Section titled “ScreenshotPageTool”from cayu.tools import ScreenshotPageToolCapture one bounded public HTTPS page as an artifact-backed PNG attachment.
Bases: Tool.
init (method)
Section titled “init (method)”ScreenshotPageTool.__init__(*, worker_command: Sequence[str]=DEFAULT_BROWSER_FETCH_WORKER_COMMAND, max_response_bytes: int=DEFAULT_SCREENSHOT_MAX_RESPONSE_BYTES, timeout_seconds: float=DEFAULT_SCREENSHOT_TIMEOUT_SECONDS, max_redirects: int=DEFAULT_SCREENSHOT_MAX_REDIRECTS, max_requests: int=DEFAULT_BROWSER_FETCH_MAX_REQUESTS, max_screenshot_bytes: int=DEFAULT_SCREENSHOT_MAX_BYTES, viewport_width: int=DEFAULT_SCREENSHOT_VIEWPORT_WIDTH, viewport_height: int=DEFAULT_SCREENSHOT_VIEWPORT_HEIGHT, max_page_width: int=DEFAULT_SCREENSHOT_MAX_PAGE_WIDTH, max_page_height: int=DEFAULT_SCREENSHOT_MAX_PAGE_HEIGHT, max_page_pixels: int=DEFAULT_SCREENSHOT_MAX_PAGE_PIXELS, expected_runner_candidate: str | None=None, expected_environment_authority: ExecutionEnvironmentAuthority | None=None, expected_workload_authority: RunnerWorkloadAuthority | None=None, expected_artifact_store_id: str | None=None, spec: ToolSpec | None=None) -> Nonename (property)
Section titled “name (property)”ScreenshotPageTool.name() -> strexecution_profile_identity (property)
Section titled “execution_profile_identity (property)”ScreenshotPageTool.execution_profile_identity() -> ExecutionProfileBehaviorIdentity | NoneReturn the stable behavior declaration frozen with this tool’s spec.
retain_arguments_for_model (property)
Section titled “retain_arguments_for_model (property)”ScreenshotPageTool.retain_arguments_for_model() -> boolRetain bounded redacted original inputs privately for the same profile.
Independent of audit publication; oversized and compacted-away inputs may be omitted. This does not grant knowledge read or activation rights.
description (property)
Section titled “description (property)”ScreenshotPageTool.description() -> strschema (property)
Section titled “schema (property)”ScreenshotPageTool.schema() -> dict[str, Any]run (method)
Section titled “run (method)”async ScreenshotPageTool.run(ctx: ToolContext, args: dict[str, object]) -> ToolResult