Files
browse/dist/browser.d.ts
T
Adam Ladachowski bc1f3d9d73 Add Claude Code plugin support with MCP prompts and resources
- Add .claude-plugin/plugin.json manifest (name: browse)
- Add 11 slash commands: start, end, goto, screenshot, scrape, analyze, extract, fill, compare, save, restore
- Add MCP resources: browser://state, browser://html, browser://screenshot
- Add MCP prompts: analyze_page, extract_data, navigate_to, fill_form, compare_screenshots
- Add session management tools: close, session_save, session_restore
- Include dist/ for plugin installation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-08 03:08:02 +01:00

48 lines
1.4 KiB
TypeScript

import { type BrowserContext, type Page } from 'playwright';
import type { BrowserCommand, BrowserOptions, CommandResponse, ElementInfo } from './types.js';
export declare class ClaudeBrowser {
private browser;
private context;
private page;
private options;
constructor(options?: BrowserOptions);
launch(): Promise<void>;
close(): Promise<void>;
private ensurePage;
/** Get the current page instance (for advanced usage) */
getPage(): Page | null;
/** Get the browser context (for advanced usage like cookies) */
getContext(): BrowserContext | null;
goto(url: string): Promise<{
url: string;
title: string;
}>;
click(selector: string): Promise<{
url: string;
}>;
type(selector: string, text: string): Promise<void>;
query(selector: string): Promise<ElementInfo[]>;
screenshot(path?: string, fullPage?: boolean): Promise<{
path: string;
buffer?: Buffer;
}>;
getUrl(): Promise<{
url: string;
title: string;
}>;
getHtml(full?: boolean): Promise<string>;
back(): Promise<{
url: string;
}>;
forward(): Promise<{
url: string;
}>;
reload(): Promise<{
url: string;
}>;
wait(ms?: number): Promise<void>;
newPage(): Promise<void>;
eval(script: string): Promise<unknown>;
executeCommand(cmd: BrowserCommand): Promise<CommandResponse>;
}
//# sourceMappingURL=browser.d.ts.map