voidfeed_inventory
Returns the complete content inventory indexed by type and tier. Free for surface tier; void tier requires JWT authentication.
Instructions
Full content inventory: all pieces indexed by type and tier. Surface tier is free. The Void tier requires a JWT (set VOIDFEED_JWT env var).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:191-192 (handler)Handler case for 'voidfeed_inventory': calls vfGet('/v1/catalog/inventory') to fetch the full content inventory from the VoidFeed API.
case 'voidfeed_inventory': return vfGet('/v1/catalog/inventory'); - index.js:69-73 (schema)Schema/definition for 'voidfeed_inventory' tool: describes it as 'Full content inventory: all pieces indexed by type and tier' with an empty inputSchema (no required parameters).
{ name: 'voidfeed_inventory', description: 'Full content inventory: all pieces indexed by type and tier. Surface tier is free. The Void tier requires a JWT (set VOIDFEED_JWT env var).', inputSchema: { type: 'object', properties: {}, required: [] }, - index.js:256-258 (registration)Tool registration: TOOLS array is exposed via ListToolsRequestSchema handler, and CallToolRequestSchema dispatches to handleTool which routes to the case.
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS })); server.setRequestHandler(CallToolRequestSchema, async (request) => { - index.js:44-48 (helper)Helper function vfGet: makes authenticated GET requests to the VoidFeed base URL, used by the inventory handler.
async function vfGet(path) { const res = await fetch(`${BASE}${path}`, { headers: authHeaders() }); if (!res.ok) throw new Error(`VoidFeed ${path} → ${res.status}`); return res.json(); }