diff options
| author | Patrick Barattin <p.barattin@gmail.com> | 2026-10-11 20:25:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-11 23:55:38 +0530 |
| commit | 014de0ec21936a7a2fd64db9d151e73c79bb44ad (patch) | |
| tree | 654a0a50eb2a88a14f55458e75dfb55e1c5779f5 /src/domains/network.ts | |
| parent | 79526b01f4d3cf16c3cfb46313cf1179f0db40ac (diff) | |
refactor: remove duplicate browser prompt instructions (#35)
Remove browser instruction text repeated across tool descriptions, parameter schemas, tool
guidelines and the global browser prompt. Tool names, schemas, handlers and concurrency are
unchanged; shared recovery and ownership guidance is now available before and after the browser
connects, and the prompt names which tools are serialized versus observations.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'src/domains/network.ts')
| -rw-r--r-- | src/domains/network.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/domains/network.ts b/src/domains/network.ts index a34dde3..438aaa1 100644 --- a/src/domains/network.ts +++ b/src/domains/network.ts @@ -24,7 +24,6 @@ export const httpGetTool = defineBrowserTool({ "Fetch a URL outside the browser (faster than browser_navigate for APIs and static pages). Timeout covers headers AND body read.", promptSnippet: "HTTP GET (outside browser; for APIs/static pages)", promptGuidelines: [ - "Faster than navigate+execute_js for JSON/HTML APIs.", "No JS rendering — for SPAs use browser_navigate.", ], parameters: HttpGetArgs, @@ -224,8 +223,7 @@ export const networkRequestsTool = defineBrowserTool({ promptSnippet: "Inspect recent network requests on the current page", promptGuidelines: [ "Buffer is reset on tab switch — only requests on the current tab since attach are visible.", - 'urlPattern is a substring; wrap in slashes for regex (e.g. "/\\\\.json$/").', - "includeResponseBodies:true costs an extra CDP call per matched request — use only when you need payloads.", + "Pass includeResponseBodies:true to browser_network_requests only when you need payloads.", "If bufferOverflowed:true in the result, older events were dropped (capacity 500 records/tab).", ], parameters: NetworkRequestsArgs, |
