mcp-wayback-machine
Version:
MCP server and CLI tool for interacting with the Wayback Machine without API keys
34 lines (32 loc) • 1.05 kB
TypeScript
/**
* Retrieve tool ΓÇö resolves archived URLs and fetches snapshot content.
* Supports URL modifiers (id_, im_, js_, cs_) for different content views.
*/
import * as z from "zod";
import type { ToolContext } from "./context.ts";
export declare const GetArchivedUrl: z.ZodObject<{
url: z.ZodURL;
timestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"latest">, z.ZodString]>>;
modifier: z.ZodOptional<z.ZodEnum<{
id_: "id_";
im_: "im_";
js_: "js_";
cs_: "cs_";
}>>;
}, z.core.$strip>;
export type GetArchivedUrl = z.output<typeof GetArchivedUrl>;
interface RetrieveResult {
success: boolean;
message: string;
archivedUrl?: string;
timestamp?: string;
available?: boolean;
content?: string;
contentType?: string;
}
/**
* * Get an archived version of a URL, optionally fetching the snapshot content.
*/
export declare function getArchivedUrl(input: GetArchivedUrl, ctx: ToolContext): Promise<RetrieveResult>;
export {};
//# sourceMappingURL=retrieve.d.ts.map