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

Function formatFirstIssue

packages/mcp/src/tools/writing.ts:122–127  ·  view source on GitHub ↗
(error: z.ZodError)

Source from the content-addressed store, hash-verified

120})
121
122function formatFirstIssue(error: z.ZodError): string {
123 const issue = error.issues[0]
124 if (!issue) return 'invalid arguments'
125 const issuePath = issue.path.length > 0 ? `${issue.path.join('.')}: ` : ''
126 return `${issuePath}${issue.message}`
127}
128
129export const writingTools: Tool[] = [
130 {

Callers 6

handleCreateFunction · 0.70
handleAddBlockFunction · 0.70
handleEditBlockFunction · 0.70
handleRemoveBlockFunction · 0.70
handleReorderBlocksFunction · 0.70
handleAddNotebookFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected