mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 16:30:27 +00:00
Add new get_web_viewer_content tool that allows AI agents to retrieve text content or screenshots from open web views. Refactor AIToolResponse to use AIToolResponsePayload class for structured responses with attachment support. Update tool service to handle binary file attachments consistently across read_vault_files and new web viewer tool.
10 lines
No EOL
253 B
TypeScript
10 lines
No EOL
253 B
TypeScript
export interface WebviewElement extends Element {
|
|
getURL(): string;
|
|
isLoading(): boolean;
|
|
capturePage(): Promise<NativeImage>
|
|
executeJavaScript(code: string): Promise<unknown>;
|
|
}
|
|
|
|
export interface NativeImage {
|
|
toDataURL(): string;
|
|
} |