MCPcopy Index your code
hub / github.com/deepnote/deepnote / handleReadingTool

Function handleReadingTool

packages/mcp/src/tools/reading.ts:589–607  ·  view source on GitHub ↗
(name: string, args: Record<string, unknown> | undefined)

Source from the content-addressed store, hash-verified

587}
588
589export async function handleReadingTool(name: string, args: Record<string, unknown> | undefined) {
590 const safeArgs = args || {}
591
592 switch (name) {
593 case 'deepnote_read':
594 return handleRead(safeArgs)
595 case 'deepnote_cat':
596 return handleCat(safeArgs)
597 case 'deepnote_validate':
598 return handleValidate(safeArgs)
599 case 'deepnote_diff':
600 return handleDiff(safeArgs)
601 default:
602 return {
603 content: [{ type: 'text', text: `Unknown reading tool: ${name}` }],
604 isError: true,
605 }
606 }
607}

Callers 2

createServerFunction · 0.90
reading.test.tsFile · 0.90

Calls 4

handleReadFunction · 0.85
handleCatFunction · 0.85
handleValidateFunction · 0.85
handleDiffFunction · 0.85

Tested by

no test coverage detected