get_knowledge_rows
Fetch sample data rows from knowledge lists to inspect actual payloads and understand data structure for workflows.
Instructions
Fetch sample rows from a knowledge list. Use this to inspect actual data — see example payloads from investor/deal lists. Returns rows with their full rowData, plus count and totalCount for the list.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| listKey | Yes | The list key to fetch rows from (e.g., "investors", "deals") | |
| limit | No | Number of rows to return (default 5, max 50) |
Implementation Reference
- src/tools/knowledge.ts:51-69 (registration)Tool registration for "get_knowledge_rows" in src/tools/knowledge.ts.
server.tool( 'get_knowledge_rows', `Fetch sample rows from a knowledge list. Use this to inspect actual data — see example payloads from investor/deal lists. Returns rows with their full rowData, plus count and totalCount for the list.`, { listKey: z.string().describe('The list key to fetch rows from (e.g., "investors", "deals")'), limit: z.number().min(1).max(50).optional().describe('Number of rows to return (default 5, max 50)'), }, async ({ listKey, limit }, extra) => { const client = clientFactory(extra); const result = await client.getKnowledgeRows(listKey, limit); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2), }], }; } ); - src/client.ts:325-329 (handler)The actual handler implementation for "get_knowledge_rows" within the AgentledClient class, which makes the API call to the knowledge service.
async getKnowledgeRows(listKey: string, limit?: number) { const query = new URLSearchParams({ listKey }); if (limit) query.set('limit', String(limit)); return this.request(`/knowledge/rows?${query}`); }