diff --git a/src/scrape.ts b/src/scrape.ts index 1a820a3..4446734 100644 --- a/src/scrape.ts +++ b/src/scrape.ts @@ -14,6 +14,7 @@ export interface ScrapeOptions { * - 'html': Page content in HTML format * - 'text': Plain text content * - 'links': All hyperlinks on the page + * - 'summary': AI-generated summary of the page content * - 'screenshot-visible': Screenshot of visible viewport * - 'screenshot-fullpage': Full page screenshot * diff --git a/src/types/index.ts b/src/types/index.ts index 46a6765..d34abee 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -8,7 +8,7 @@ export type RobotType = 'extract' | 'scrape' | 'crawl' | 'search'; export type RobotMode = 'normal' | 'bulk'; -export type Format = 'markdown' | 'html' | 'text' | 'links' | 'screenshot-visible' | 'screenshot-fullpage'; +export type Format = 'markdown' | 'html' | 'text' | 'links' | 'summary' | 'screenshot-visible' | 'screenshot-fullpage'; export type RunStatus = 'running' | 'queued' | 'success' | 'failed' | 'aborting' | 'aborted'; export type TimeUnit = 'MINUTES' | 'HOURS' | 'DAYS' | 'WEEKS' | 'MONTHS'; export type CrawlMode = 'domain' | 'subdomain' | 'path'; @@ -127,6 +127,7 @@ export interface RunResult { markdown?: string; html?: string; links?: string[]; + summary?: string; promptResult?: string | null; binaryOutput?: Record; };