Set or clear the capture scope (retention scoping)
proxy_scopeRestrict proxy log retention to specific hostnames, keeping only matching traffic for focused debugging. Omit hosts to retain all traffic again.
Instructions
Restrict which traffic is retained in the proxy log (proxy_list_traffic). The proxy still intercepts and serves all hosts — this only controls what is kept, so the agent's context stays small during bug investigation. Pass 'hosts' to retain only matching hostnames (their subdomains are included, and '*.example.com' wildcards are allowed); omit 'hosts' or pass [] to clear scoping and retain all traffic again. Returns the active scope and current captured-traffic count. Already-captured entries are unaffected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hosts | No | Hostnames to retain, e.g. ['api.cld.example.com']. Omit or [] = retain all traffic (no scoping). |