crawlio-browser

v1.11.0
app.crawlio/crawlio-browser Checked 3 days ago Published 3 months ago

Bridge a live Chrome browser to your agent: 150 tools for capture, extraction, and observation.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

execute

Execute JavaScript code with access to the browser bridge, Crawlio HTTP client, and smart object. Use search() first to discover available commands and their parameters. IMPORTANT WARNINGS: - smart.screenshot() does NOT exist. For screenshots: bridge.send({ type: 'take_screenshot' }). - For structured page evidence, prefer smart.extractPage() — runs 7 ops in parallel with typed gaps[]. - capture_page returns a ~1KB shaped summary. For raw data, use stop_network_capture or get_console_logs. - Use smart.waitForIdle() instead of sleep(). Use smart.scrollCapture() instead of manual scroll loops…

ParameterTypeDescription
code *stringAsync JavaScript function body. Has bridge, crawlio, sleep, TIMEOUTS, smart, compileRecording, ocrScreenshot, saveArtifact in scope. Must return a value (for bulk data, saveArtifact to disk and return…
backgroundbooleanRun detached: returns { jobId } immediately and keeps executing server-side up to the sandbox cap (~120s). Poll get_job_result(jobId) for the result. Use for heavy/long runs (e.g. navigate + OCR) that…
tabIdnumberTarget tab id from list_tabs. Every bridge.send in the script that does not name its own tabId runs against this tab (default: the connected tab).

observe

Manage extension-resident observation. Actions: training_start, training_status, training_stop, training_clear, training_artifacts; recording_start, recording_status, recording_stop, recording_clear, recording_artifacts (RecordingBundle aliases); monitor_start, monitor_status, monitor_results, monitor_stop, monitor_clear. Training and monitors continue while MCP is disconnected; stop materializes canonical files and confirmed clear deletes only Chrome-retained records.

ParameterTypeDescription
action *string
activebooleanOpen the training tab in the foreground (default true)
bundleIDstring
captureStorageValuesboolean
closeTabboolean
confirmbooleanMust be true for training_clear/recording_clear
fetchBodiesboolean
includeSnapshotboolean
intervalMinutesnumber
labelstring
limitnumber
maxDurationSecnumber
maxInteractionsnumber
monitorIdstring
outputDirstring
runIdstring
urlstring

get_job_result

Poll a background execute job by jobId (returned by execute({ background: true })). Returns { status: running|done|error|cancelled, value?, console?, error?, ageMs, runtimeMs? }, or { status: 'not_found' } if unknown/expired (finished jobs are kept ~10 min). phase/percent come from reportPhase(name, percent) calls inside the job; phases is the recent timeline while it is still running.

ParameterTypeDescription
jobId *stringJob id from execute({ background: true })

list_jobs

List background execute jobs (running + recently finished). Returns { count, jobs: [{ jobId, status, ageMs, runtimeMs? }] }.

cancel_job

Cancel a running background execute job by jobId — terminates its sandbox worker. No-op if the job already finished.

ParameterTypeDescription
jobId *stringJob id to cancel

connect_tab

Pin a browser tab for subsequent commands and start CDP capture. Three modes: (1) provide a URL: with the optional tabs grant Crawlio reuses a match, otherwise it creates a fresh owned tab; (2) provide a tabId to adopt a specific existing tab (tabs grant required); (3) no args to discover and pin the active tab (tabs grant required). Pass background:true to avoid stealing the user's active tab/window focus.

ParameterTypeDescription
backgroundbooleanConnect + drive the tab without activating it or focusing its window (no focus-steal). The tab opens/loads in the background; input and screenshots use CDP so they work without foreground focus.
tabIdnumberSpecific tab ID to connect to (use list_tabs to discover IDs)
urlstringURL to open — reuses a match when tab metadata is granted, otherwise creates a fresh owned tab