UNPKG

@cyanheads/jinaai-mcp-server

Version:

A Model Context Protocol (MCP) server that provides intelligent web reading capabilities using the Jina AI Reader API. It extracts clean, LLM-ready content from any URL.

46 lines 1.74 kB
/** * @fileoverview Defines the core logic, schemas, and types for the `jinaai_read_webpage` tool. * @module src/mcp-server/tools/jinaReader/logic * @see {@link src/mcp-server/tools/jinaReader/registration.ts} for the handler and registration logic. */ import { z } from "zod"; import { type RequestContext } from "../../../utils/index.js"; export declare const ReadWebpageInputSchema: z.ZodObject<{ url: z.ZodString; format: z.ZodDefault<z.ZodEnum<["Default", "Markdown", "HTML", "Text"]>>; with_links: z.ZodDefault<z.ZodBoolean>; with_images: z.ZodDefault<z.ZodBoolean>; with_generated_alt: z.ZodDefault<z.ZodBoolean>; no_cache: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { url: string; format: "Default" | "Markdown" | "HTML" | "Text"; with_links: boolean; with_images: boolean; with_generated_alt: boolean; no_cache: boolean; }, { url: string; format?: "Default" | "Markdown" | "HTML" | "Text" | undefined; with_links?: boolean | undefined; with_images?: boolean | undefined; with_generated_alt?: boolean | undefined; no_cache?: boolean | undefined; }>; export declare const ReadWebpageResponseSchema: z.ZodObject<{ url: z.ZodString; content: z.ZodString; format: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; format: string; content: string; }, { url: string; format: string; content: string; }>; export type ReadWebpageInput = z.infer<typeof ReadWebpageInputSchema>; export type ReadWebpageResponse = z.infer<typeof ReadWebpageResponseSchema>; export declare function readWebpageToolLogic(params: ReadWebpageInput, context: RequestContext): Promise<ReadWebpageResponse>; //# sourceMappingURL=logic.d.ts.map