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

Function toError

packages/mcp/src/tools/conversion.ts:83–88  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

81]
82
83function toError(message: string) {
84 return {
85 content: [{ type: 'text', text: message }],
86 isError: true,
87 } as const
88}
89
90const nonEmptyStringSchema = z.string().refine(value => value.trim().length > 0, {
91 message: 'expected a non-empty string',

Callers 2

handleConvertToFunction · 0.85
handleConvertFromFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected