@brave/brave-search-mcp-server
Version:
Brave Search MCP Server: web results, images, videos, rich results, AI summaries, and more.
21 lines (20 loc) • 626 B
JavaScript
import { z } from 'zod';
import { ConfidenceSchema, ExtraSchema } from './response.js';
export const SimplifiedImageResultSchema = z.object({
title: z.string(),
url: z.url(),
page_fetched: z.iso.datetime(),
confidence: ConfidenceSchema,
properties: z.object({
url: z.url(),
width: z.int().positive(),
height: z.int().positive(),
}),
});
const OutputSchema = z.object({
type: z.literal('object'),
items: z.array(SimplifiedImageResultSchema),
count: z.int().nonnegative(),
might_be_offensive: ExtraSchema.shape.might_be_offensive,
});
export default OutputSchema;