MCPcopy Create free account
hub / github.com/deepnote/deepnote / handleWritingTool

Function handleWritingTool

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

Source from the content-addressed store, hash-verified

948}
949
950export async function handleWritingTool(name: string, args: Record<string, unknown> | undefined) {
951 const safeArgs = args || {}
952
953 switch (name) {
954 case 'deepnote_create':
955 return handleCreate(safeArgs)
956 case 'deepnote_add_block':
957 return handleAddBlock(safeArgs)
958 case 'deepnote_edit_block':
959 return handleEditBlock(safeArgs)
960 case 'deepnote_remove_block':
961 return handleRemoveBlock(safeArgs)
962 case 'deepnote_reorder_blocks':
963 return handleReorderBlocks(safeArgs)
964 case 'deepnote_add_notebook':
965 return handleAddNotebook(safeArgs)
966 default:
967 return {
968 content: [{ type: 'text', text: `Unknown writing tool: ${name}` }],
969 isError: true,
970 }
971 }
972}

Callers 5

createServerFunction · 0.90
writing.test.tsFile · 0.90
reading.test.tsFile · 0.90
execution.test.tsFile · 0.90
snapshots.test.tsFile · 0.90

Calls 6

handleCreateFunction · 0.85
handleAddBlockFunction · 0.85
handleEditBlockFunction · 0.85
handleRemoveBlockFunction · 0.85
handleReorderBlocksFunction · 0.85
handleAddNotebookFunction · 0.85

Tested by

no test coverage detected