get_knowledge_text
Fetch text-based knowledge entries like feedback files, notes, or configuration text from the workspace by specifying a key to access stored information.
Instructions
Fetch a text-type knowledge entry by key. Use this to access text-based knowledge like feedback files, notes, or configuration text stored in the workspace.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key of the text entry to fetch |
Implementation Reference
- src/tools/knowledge.ts:71-87 (handler)Tool handler for 'get_knowledge_text' registered in the MCP server. It calls the client's getKnowledgeText method.
server.tool( 'get_knowledge_text', `Fetch a text-type knowledge entry by key. Use this to access text-based knowledge like feedback files, notes, or configuration text stored in the workspace.`, { key: z.string().describe('The key of the text entry to fetch'), }, async ({ key }, extra) => { const client = clientFactory(extra); const result = await client.getKnowledgeText(key); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2), }], }; } ); - src/client.ts:331-334 (helper)The underlying client implementation that makes the HTTP request to the /knowledge/text API endpoint.
async getKnowledgeText(key: string) { const query = new URLSearchParams({ key }); return this.request(`/knowledge/text?${query}`); }