Listing Packages
Problem
You need to discover which Vielzeug packages are available, what documentation pages each one has, and whether source is accessible before calling get-docs or get-source.
Solution
Call list-packages without arguments to get the full catalog, or pass packageSlug to retrieve a single package as a one-item array.
json
{ "name": "list-packages", "arguments": {} }Result excerpt:
json
[
{
"name": "@vielzeug/ripple",
"slug": "ripple",
"version": "3.0.1",
"description": "Reactive signals, computed, effects, stores",
"category": "state",
"exports": ["signal", "computed", "effect"],
"availableDocPages": ["index", "api", "usage", "examples"],
"hasSource": true
}
]Filter to one package
Pass packageSlug to get a single-item array. The return type is always an array.
json
{ "name": "list-packages", "arguments": { "packageSlug": "ripple" } }Pitfalls
- The result never includes
docscontent orapiSource— callget-docsorget-sourceseparately. - An unknown
packageSlugreturnsisError: true, not an empty array. Check the available slugs listed in the error before retrying. availableDocPagesvaries per package; always check it before callingget-docswith a specific page.