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

Function formatFirstIssue

packages/mcp/src/tools/snapshots.ts:64–69  ·  view source on GitHub ↗
(error: z.ZodError)

Source from the content-addressed store, hash-verified

62})
63
64function formatFirstIssue(error: z.ZodError): string {
65 const issue = error.issues[0]
66 if (!issue) return 'invalid arguments'
67 const issuePath = issue.path.length > 0 ? `${issue.path.join('.')}: ` : ''
68 return `${issuePath}${issue.message}`
69}
70
71export const snapshotTools: Tool[] = [
72 {

Callers 4

handleSnapshotListFunction · 0.70
handleSnapshotLoadFunction · 0.70
handleSnapshotSplitFunction · 0.70
handleSnapshotMergeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected