Start Capture
capture_startStart recording console output and network activity on an Arc tab for later retrieval by capture_read. Records only from now on, so call again after page navigation.
Instructions
Start recording console output, uncaught errors, unhandled promise rejections and fetch and XMLHttpRequest calls on a tab, for capture_read to return. Records from now on only, and the recorder is lost when the page navigates or reloads, so call it again after. Network events carry method, url, status and duration. Bodies and headers are never recorded, the url fragment is dropped, and the query string is dropped unless include_query is set. Console text IS recorded (capped), so it can hold whatever the page logs. It installs a script into the page's own JavaScript world, because Arc runs this server's scripts in an isolated world that cannot see the page's console or fetch. A page whose Content-Security-Policy forbids inline scripts blocks it: the call then fails with ok false and says why, and network_entries still works. Only the top frame is covered (not iframes or workers), and not WebSockets, sendBeacon or requests made before this call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | Arc tab id from list_tabs. Omit to use this agent's current tab. A tool that changes a tab will not fall back to the tab the user is looking at, so pass this or call open_url first. | |
| include_query | No | Keep the url query string in network events. Off by default because queries often carry tokens. |