pkg_outline
Maps a package's namespaces or modules with counts, never a type listing. Use it on a completely unfamiliar package or after a version bump, then go to pkg_find.
Instructions
Shows the map of a package (namespaces for NuGet, modules for PyPI and npm, each with a count), never a listing of types. Use it for a completely unfamiliar package, or with refresh=true after a version bump. Otherwise go straight to pkg_find. The first call for a package version downloads and indexes it, which can take a few seconds; later calls are instant. Pin the version (and for NuGet the targetFramework) of the project so the API matches what the project runs against. PyPI packages are read from their wheel and npm packages from their declaration files, without installing, importing or running anything.
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": {
"packageId": "<packageId>"
},
"name": "pkg_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guide | No | true: put the packages guide first in the result. Use on your first packages call, or when told it changed. | |
| project | No | Optional, pypi and npm only: the project folder (or its pyproject.toml or package.json) inside the workspace whose lock file decides the version; default the workspace folder. | |
| refresh | No | Optional: rebuild the index from the package instead of reading the stored one (default false) | |
| version | No | Optional: exact package version, from the project's package list or lock file. Omit for the latest stable. | |
| ecosystem | No | Optional: 'nuget' (default), 'pypi' (a Python package) or 'npm' (a JavaScript or TypeScript package). | |
| namespace | No | Optional: only namespaces (modules) that start with this text | |
| packageId | Yes | Package id (NuGet, e.g. 'Polly'), project name (PyPI, e.g. 'requests') or package name (npm, e.g. 'zod' or '@tanstack/react-query') | |
| workspace | No | Optional, pypi and npm only: workspace name. With it, and no version, the version comes from the project's lock file (uv.lock, poetry.lock, pdm.lock, pylock.toml; package-lock.json, pnpm-lock.yaml, yarn.lock). | |
| targetFramework | No | Optional, NuGet only: target framework such as 'net10.0' (default: the configured default) | |
| includePrerelease | No | Optional: allow prerelease when no version is given (default false; NuGet only) | |
| additionalPackageIds | No | Optional, NuGet only: extra package ids whose assemblies the reflection needs, only after an error that names a missing assembly |