{"_id":"@coopah/bentley-tool-web-search","_rev":"4-e58527e41a8a3c03c2446f1a3f2198d4","name":"@coopah/bentley-tool-web-search","dist-tags":{"latest":"0.3.0"},"versions":{"0.2.0":{"name":"@coopah/bentley-tool-web-search","version":"0.2.0","keywords":["ai","agent","llm","bentley"],"license":"MIT","_id":"@coopah/bentley-tool-web-search@0.2.0","maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"homepage":"https://github.com/CoopahG/bentley#readme","bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"dist":{"shasum":"2ca774c5b0dadefa69eeb4710b9225b6c4555c36","tarball":"https://registry.npmjs.org/@coopah/bentley-tool-web-search/-/bentley-tool-web-search-0.2.0.tgz","fileCount":10,"integrity":"sha512-tuN2WaY98cvml7aLpcux2kKI0AJn2AICtqfbb6T7tH794apc5iEqN1zcQw6jgG4Ta4vp9jnp/Wbsu33lg3LMDA==","signatures":[{"sig":"MEQCIGpUVT+o3XemwdqfDoLTGQHtbD8XaPW1AXHQlGD4cYA2AiAZpDA8DZISiXuS2xZJFu7f9B9ZLtEsGBALllpKIDajyA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7143},"main":"dist/index.js","type":"module","_from":"file:coopah-bentley-tool-web-search-0.2.0.tgz","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"coopah","email":"tibo6c04@gmail.com"},"_resolved":"/private/var/folders/k4/9fdyr38j4gv59whg5k3w4fgm0000gn/T/5126572f42d34cadf696cb8a9ae6e92c/coopah-bentley-tool-web-search-0.2.0.tgz","_integrity":"sha512-tuN2WaY98cvml7aLpcux2kKI0AJn2AICtqfbb6T7tH794apc5iEqN1zcQw6jgG4Ta4vp9jnp/Wbsu33lg3LMDA==","repository":{"url":"git+https://github.com/CoopahG/bentley.git","type":"git","directory":"packages/tools/web-search"},"_npmVersion":"10.9.4","description":"Web search tool for Bentley agents","directories":{},"_nodeVersion":"22.22.0","dependencies":{"ai":"^6.0.116","zod":"^4.3.6","@coopah/bentley-core":"0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.3.5"},"_npmOperationalInternal":{"tmp":"tmp/bentley-tool-web-search_0.2.0_1773093159719_0.8399428385459407","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@coopah/bentley-tool-web-search","version":"0.2.1","keywords":["ai","agent","llm","bentley"],"license":"MIT","_id":"@coopah/bentley-tool-web-search@0.2.1","maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"homepage":"https://github.com/CoopahG/bentley#readme","bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"dist":{"shasum":"e0f2514ec5f57c5d9c3f22e6884b6c51c2f006b9","tarball":"https://registry.npmjs.org/@coopah/bentley-tool-web-search/-/bentley-tool-web-search-0.2.1.tgz","fileCount":11,"integrity":"sha512-x2grWYsH9AR4SFDw8Ul+8msDgWbnpwtBQUufB03DutKbNzzFd3eQEAQF1QfwCRKFIqvkcKtaa0liSQcfIexkgw==","signatures":[{"sig":"MEUCIA6RgxR9zlgHu5r2Zhm+x6mBoPqHvrEiwJN5ZI1nN6vAAiEAvWcv6K/Isy8BAnHGZ0/7oJn7F7n59a3yTiDO4LRGs6U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7932},"main":"dist/index.js","type":"module","_from":"file:coopah-bentley-tool-web-search-0.2.1.tgz","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"coopah","email":"tibo6c04@gmail.com"},"_resolved":"/private/var/folders/k4/9fdyr38j4gv59whg5k3w4fgm0000gn/T/3b1f0a5b9572edfce944bbee61e8a69d/coopah-bentley-tool-web-search-0.2.1.tgz","_integrity":"sha512-x2grWYsH9AR4SFDw8Ul+8msDgWbnpwtBQUufB03DutKbNzzFd3eQEAQF1QfwCRKFIqvkcKtaa0liSQcfIexkgw==","repository":{"url":"git+https://github.com/CoopahG/bentley.git","type":"git","directory":"packages/tools/web-search"},"_npmVersion":"10.9.4","description":"Web search tool for Bentley agents","directories":{},"_nodeVersion":"22.22.0","dependencies":{"ai":"^6.0.116","zod":"^4.3.6","@coopah/bentley-core":"0.2.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.3.5"},"_npmOperationalInternal":{"tmp":"tmp/bentley-tool-web-search_0.2.1_1773093599842_0.7569564449815589","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@coopah/bentley-tool-web-search","version":"0.2.2","keywords":["ai","agent","llm","bentley"],"license":"MIT","_id":"@coopah/bentley-tool-web-search@0.2.2","maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"homepage":"https://github.com/CoopahG/bentley#readme","bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"dist":{"shasum":"2e08aa4de9c240a90a2574f6cc52f5f2ba664a22","tarball":"https://registry.npmjs.org/@coopah/bentley-tool-web-search/-/bentley-tool-web-search-0.2.2.tgz","fileCount":11,"integrity":"sha512-vzWUVI2N42OgRAqtvyOtJS8Eo92fTgrHTQH94ul4SdgJcOtmUpgfsYkVraWB8VI7tBEHXB6NN5/fc7nYG6GNlQ==","signatures":[{"sig":"MEUCICTOw2GA5RXvA66fzHKgcAGT4equHbk1Rct+jP2HN4OUAiEAp4WU0aICy6KnH2ibV0771uarniofoGFkh9jlH9Ngvwc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8894},"main":"dist/index.js","type":"module","_from":"file:coopah-bentley-tool-web-search-0.2.2.tgz","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"coopah","email":"tibo6c04@gmail.com"},"_resolved":"/private/var/folders/k4/9fdyr38j4gv59whg5k3w4fgm0000gn/T/6d67231e2b7d9f1f898827b04fb47613/coopah-bentley-tool-web-search-0.2.2.tgz","_integrity":"sha512-vzWUVI2N42OgRAqtvyOtJS8Eo92fTgrHTQH94ul4SdgJcOtmUpgfsYkVraWB8VI7tBEHXB6NN5/fc7nYG6GNlQ==","repository":{"url":"git+https://github.com/CoopahG/bentley.git","type":"git","directory":"packages/tools/web-search"},"_npmVersion":"10.9.4","description":"Web search tool for Bentley agents","directories":{},"_nodeVersion":"22.22.0","dependencies":{"ai":"^6.0.116","zod":"^4.3.6","@coopah/bentley-core":"0.2.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.3.5"},"_npmOperationalInternal":{"tmp":"tmp/bentley-tool-web-search_0.2.2_1773093924259_0.8760661568023878","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@coopah/bentley-tool-web-search","version":"0.3.0","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"ai":"^6.0.116","duck-duck-scrape":"^2.2.7","zod":"^4.3.6","@coopah/bentley-core":"0.3.0"},"devDependencies":{"@types/node":"^25.4.0","typescript":"^5.9.3"},"description":"Web search tool for Bentley agents","license":"MIT","repository":{"type":"git","url":"git+https://github.com/CoopahG/bentley.git","directory":"packages/tools/web-search"},"engines":{"node":">=20.0.0"},"keywords":["ai","agent","llm","bentley"],"scripts":{"build":"tsc","dev":"tsc --watch","lint":"eslint src","test":"vitest run","typecheck":"tsc --noEmit","clean":"rm -rf dist"},"_id":"@coopah/bentley-tool-web-search@0.3.0","bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"homepage":"https://github.com/CoopahG/bentley#readme","_integrity":"sha512-bO8zumY/sfZW9+7uzdIiScZPtXUcev4pv3Uo+QUOlOzic9ewm8eStOJ6j94ArD5wcsDXbicyYPhQWAN16QQqKg==","_resolved":"/private/var/folders/k4/9fdyr38j4gv59whg5k3w4fgm0000gn/T/a65fa9cd1f58e927635c691d1cde1916/coopah-bentley-tool-web-search-0.3.0.tgz","_from":"file:coopah-bentley-tool-web-search-0.3.0.tgz","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-bO8zumY/sfZW9+7uzdIiScZPtXUcev4pv3Uo+QUOlOzic9ewm8eStOJ6j94ArD5wcsDXbicyYPhQWAN16QQqKg==","shasum":"4ecc2f19502b274f551992da7be33b14d9874b1d","tarball":"https://registry.npmjs.org/@coopah/bentley-tool-web-search/-/bentley-tool-web-search-0.3.0.tgz","fileCount":15,"unpackedSize":12875,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDbG33KIh9QBlSlGsteyuHURpVhHsmxDN+Ltxgo2JfiwgIgUIgTg9l0JDUmNqro4z+6NaRY3PTyUXaJydkXYfJs0SE="}]},"_npmUser":{"name":"coopah","email":"tibo6c04@gmail.com"},"directories":{},"maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bentley-tool-web-search_0.3.0_1773178077458_0.29499280789969595"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-09T21:52:39.607Z","modified":"2026-03-10T21:27:57.731Z","0.2.0":"2026-03-09T21:52:39.873Z","0.2.1":"2026-03-09T21:59:59.996Z","0.2.2":"2026-03-09T22:05:24.399Z","0.3.0":"2026-03-10T21:27:57.617Z"},"bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"license":"MIT","homepage":"https://github.com/CoopahG/bentley#readme","keywords":["ai","agent","llm","bentley"],"repository":{"type":"git","url":"git+https://github.com/CoopahG/bentley.git","directory":"packages/tools/web-search"},"description":"Web search tool for Bentley agents","maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"readme":"# @coopah/bentley-tool-web-search\n\nWeb search tool for [Bentley](https://github.com/CoopahG/bentley) agents. Lets agents search the web via [DuckDuckGo](https://duckduckgo.com) — completely free, no API key required. Returns structured results (title, URL, snippet).\n\n## Install\n\n```bash\npnpm add @coopah/bentley-tool-web-search\n```\n\n### Dependencies\n\n- [`@coopah/bentley-core`](https://www.npmjs.com/package/@coopah/bentley-core)\n- [`duck-duck-scrape`](https://www.npmjs.com/package/duck-duck-scrape) — DuckDuckGo search (no API key)\n- `ai` ^6.0.116\n- `zod` ^4.3.6\n\n## Usage\n\n```ts\nimport { createBentley } from \"@coopah/bentley-core\";\nimport { bentleyWebSearchPlugin } from \"@coopah/bentley-tool-web-search\";\n\nconst bentley = createBentley({\n  plugins: [\n    bentleyWebSearchPlugin(), // no config needed\n  ],\n});\n```\n\nOnce registered, agents with access to this tool can call it to search the web. The tool accepts a `query` string and returns an array of `{ title, url, snippet }`.\n\n## API\n\n- **`bentleyWebSearchPlugin(config?)`** — `BentleyPlugin` that registers the web search tool\n- **`createWebSearchTool(config?)`** — Low-level Vercel AI tool factory\n\n### Configuration\n\n```ts\ninterface WebSearchConfig {\n  maxResults?: number; // defaults to 5\n}\n```\n\n### Tool Schema\n\n```ts\n// Input\n{ query: string }\n\n// Output\nArray<{ title: string; url: string; snippet: string }>\n```\n\n## Related Packages\n\n| Package | Role |\n|---------|------|\n| [`@coopah/bentley-core`](https://www.npmjs.com/package/@coopah/bentley-core) | Core runtime (required) |\n| [`@coopah/bentley-tool-browser`](https://www.npmjs.com/package/@coopah/bentley-tool-browser) | Browser automation tool |\n| [`@coopah/bentley-tool-exec`](https://www.npmjs.com/package/@coopah/bentley-tool-exec) | Shell execution tool |\n\n## License\n\nMIT\n","readmeFilename":"README.md"}