Package docs
package_docsPackage docs and source for coding agents, in one call: give an npm or PyPI package name (and optional version) and get its README as Markdown, description, license, repository, entry points and types, exports, dependencies and the full file list; pass file= to read one source or type file (npm). From the npm registry, jsDelivr and PyPI. Costs $0.003 USDC on Base via x402.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "package_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | npm only: a path from files to read (src/index.ts, dist/index.d.ts) | |
| name | Yes | Package name, optionally with @version (react, @types/node, requests, expo-widgets@58.0.29) | |
| readme | No | false leaves out the README (default true) | |
| version | No | Version or dist-tag (default latest) | |
| registry | No | npm (default) or pypi |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | string, e.g. "zod" | |
| entry | No | object | |
| files | No | array | |
| notes | No | string, e.g. "From the npm registry (the version's package.json) and jsDe | |
| readme | No | string, e.g. "<p align=\"center\">\n <img src=\"logo.svg\" width=\"200px | |
| engines | No | null, e.g. null | |
| license | No | string, e.g. "MIT" | |
| version | No | string, e.g. "4.6.7" | |
| homepage | No | string, e.g. "https://zod.dev" | |
| keywords | No | array | |
| registry | No | string, e.g. "npm" | |
| fetchedAt | No | string, e.g. "2026-11-27T04:17:07.554Z" | |
| fileCount | No | number, e.g. 840 | |
| deprecated | No | null, e.g. null | |
| readmeFile | No | string, e.g. "README.md" | |
| repository | No | string, e.g. "https://github.com/colinhacks/zod" | |
| description | No | string, e.g. "TypeScript-first schema declaration and validation library | |
| dependencies | No | object | |
| unpackedSize | No | number, e.g. 6148944 | |
| filesTruncated | No | boolean, e.g. true | |
| readmeTruncated | No | boolean, e.g. false | |
| peerDependencies | No | object |