Get extraction
get_extractionRetrieve the results of a completed extraction by providing its unique extraction ID.
Instructions
Get the result of a previous extraction by its ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The extraction ID (e.g., ext_abc123) |
Implementation Reference
- src/index.ts:81-84 (handler)The handler function for the get_extraction tool. Calls client.getExtraction(id) and returns the result as formatted JSON text.
async ({ id }) => { const result = await client.getExtraction(id); return { content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }] }; } - src/index.ts:74-79 (schema)Schema definition for get_extraction tool: requires a single 'id' string parameter.
{ title: "Get extraction", description: "Get the result of a previous extraction by its ID", inputSchema: { id: z.string().describe("The extraction ID (e.g., ext_abc123)"), }, - src/index.ts:72-85 (registration)Registration of the get_extraction tool on the McpServer via server.registerTool().
server.registerTool( "get_extraction", { title: "Get extraction", description: "Get the result of a previous extraction by its ID", inputSchema: { id: z.string().describe("The extraction ID (e.g., ext_abc123)"), }, }, async ({ id }) => { const result = await client.getExtraction(id); return { content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }] }; } );