voidfeed_get_content
Retrieve a specific content piece from VoidFeed by type and ID. Get the latest fractal, signal, authority, or other knowledge graph entries.
Instructions
Retrieve a specific VoidFeed content piece by type and ID. Use "latest" as ID to get the most recent piece. Content types: fractal, incomplete, signal, authority, capability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Content architecture type | |
| id | No | Content ID or "latest" | latest |
Implementation Reference
- index.js:76-95 (registration)Tool definition/registration for voidfeed_get_content in the TOOLS array, including name, description, and input schema with 'type' (required, enum of content types) and 'id' (optional, defaults to 'latest').
name: 'voidfeed_get_content', description: 'Retrieve a specific VoidFeed content piece by type and ID. Use "latest" as ID to get the most recent piece. Content types: fractal, incomplete, signal, authority, capability.', inputSchema: { type: 'object', properties: { type: { type: 'string', enum: CONTENT_TYPES, description: 'Content architecture type', }, id: { type: 'string', description: 'Content ID or "latest"', default: 'latest', }, }, required: ['type'], }, }, - index.js:194-197 (handler)Handler for voidfeed_get_content tool call. Extracts 'type' and 'id' (defaults to 'latest') from args, then calls vfGet to fetch /v1/content/{type}/{id} from the VoidFeed API.
case 'voidfeed_get_content': { const { type, id = 'latest' } = args; return vfGet(`/v1/content/${type}/${id}`); } - index.js:44-48 (helper)vfGet helper function that performs an authenticated GET request to the VoidFeed API, used by the handler to fetch content.
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(); } - index.js:38-42 (helper)authHeaders helper that builds request headers with Authorization Bearer JWT if VOIDFEED_JWT env var is set.
function authHeaders() { const h = { 'Content-Type': 'application/json', Accept: 'application/json' }; if (JWT) h['Authorization'] = `Bearer ${JWT}`; return h; }