requests_start_monitoring
Starts capturing future web requests that match specified URL patterns in a browser profile, returning a monitor ID for reading or stopping the capture.
Instructions
Start capturing future web requests matching URL patterns in a profile.
Start before triggering navigation or other traffic. Each call starts a monitor; use requests_list_captured to read an existing one instead. Keep the returned monitor_id for requests_list_captured, requests_get_content and requests_stop_monitoring; monitors cannot be listed. Omit tab_id to capture matching traffic across this profile.
Capturing uses memory. Stop when finished; stored captures remain readable until the profile disconnects. Client disconnection stops its monitors; profile disconnection clears monitors and captured data.
profile_id is required: obtain it from profiles_list. All object IDs are local to that profile; never reuse them in another profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | Optional tab ID to monitor (if not provided, monitors all tabs) | |
| options | No | Optional configuration for monitoring: - capture_response_bodies: bool (default: True) - max_body_size: int (default: 50000) — bytes kept per body; the full size is reported either way - content_types_to_capture: List[str] (default: ["application/json", "text/plain"]) — a body comes back as text only if its content type matches one of these and is text to begin with | |
| profile_id | Yes | ||
| url_patterns | Yes | List of URL patterns to monitor (e.g., ["https://api.example.com/*", "*/api/*"]) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |