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

Function writingError

packages/mcp/src/tools/writing.ts:49–54  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

47}
48
49function writingError(message: string) {
50 return {
51 content: [{ type: 'text', text: message }],
52 isError: true,
53 } as const
54}
55
56const nonEmptyStringSchema = z.string().refine(value => value.trim().length > 0, {
57 message: 'expected a non-empty string',

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected