Files
nexus-browser-pilot-extension/tools/schema/browser_read_network.json
T
coreandClaude Opus 5 35b3af97a2 chore: make this repo self-contained
Split out of the agent repository into its own project. The two commits
that introduced and reworked the extension are preserved.

The extension could not build on its own: prebuild called
`python ../../tools/generate_tool_defs.py`, and the 31 tool schemas lived
outside the tree — in a directory that was under no version control at all.

- tools/schema/*.json and tools/generate_tool_defs.py now live here. They
  describe browser tools, so they belong with the extension.
- The generator writes TypeScript into this repo and, when the agent repo is
  checked out next to it, the Python tool definitions there as well. The
  presence check looks for agent/tools.py: checking only for the directory
  was useless — it is almost always true, and the generator then wrote into an
  arbitrary neighbouring folder (verified, then fixed).
- Added .gitignore: dist/, node_modules/, and *.token — the MCP bridge token
  is a runtime secret.

Verified: `npm run build` from a clean checkout with and without the agent
repo present; tsc reports no errors.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 18:39:24 +02:00

27 lines
989 B
JSON

{
"name": "browser_read_network",
"description": "Read the network requests the active page has made. Captured live through the DevTools Protocol — the same data the Network tab of DevTools shows: URL, HTTP method, status code, resource type, timing and size.",
"requires_confirmation": false,
"inputSchema": {
"type": "object",
"properties": {
"filter": {
"type": "string",
"description": "Only return requests whose URL contains this substring, e.g. '/api/' or 'graphql'."
},
"method": {
"type": "string",
"description": "Only return requests with this HTTP method, e.g. 'GET', 'POST', 'PUT', 'DELETE'."
},
"limit": {
"type": "integer",
"description": "Maximum number of entries to return, most recent first (default 50)."
},
"includeBody": {
"type": "boolean",
"description": "Include the response body of matching requests (default false)."
}
}
}
}