set_scope
Limit proxy recording to a list of allowed domains, reducing noise by ignoring traffic outside the target scope.
Instructions
Limit which domains the proxy records. Call AFTER manage_proxy(action="start").
By default, ALL traffic is recorded. Use this to focus on specific target domains and reduce noise. Static assets (.jpg, .css, .woff, etc.) and OPTIONS requests are always ignored regardless of scope.
Examples:
set_scope(allowed_domains=["target.com", "api.target.com"]) — only record these domains
set_scope(allowed_domains=[]) — reset to record everything
Args: allowed_domains: List of domains to record. Subdomains must be listed explicitly. Empty list = record all traffic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allowed_domains | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |