mcp-wayback-machine
Version:
MCP server and CLI tool for interacting with the Wayback Machine without API keys
31 lines (29 loc) • 1.01 kB
TypeScript
/**
* Save URL tool — Archives a URL to the Wayback Machine via SPN2 API.
* Supports authentication for higher rate limits and optional capture options.
*/
import * as z from "zod";
import type { ToolContext } from "./context.ts";
export declare const SaveUrl: z.ZodObject<{
url: z.ZodURL;
captureScreenshot: z.ZodOptional<z.ZodBoolean>;
captureOutlinks: z.ZodOptional<z.ZodBoolean>;
ifNotArchivedWithin: z.ZodOptional<z.ZodString>;
jsBehaviorTimeout: z.ZodOptional<z.ZodInt>;
forceGet: z.ZodOptional<z.ZodBoolean>;
delayWbAvailability: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
export type SaveUrl = z.output<typeof SaveUrl>;
interface SaveResult {
success: boolean;
message: string;
jobId?: string;
archivedUrl?: string;
timestamp?: string;
}
/**
* * Save a URL to the Wayback Machine using the SPN2 API.
*/
export declare function saveUrl(input: SaveUrl, ctx: ToolContext): Promise<SaveResult>;
export {};
//# sourceMappingURL=save.d.ts.map