collect_code
Fetch and cache source code of all scripts on a page. Optionally filter by URL or substring to collect only specific scripts.
Instructions
Fetch and cache the source of every script URL on the active page. If urls/urlSubstring given, only those are collected.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "collect_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | ||
| urlSubstring | No | ||
| maxScripts | No |