Summarize
Use summarize to extract or summarize web and local content.
Workflow
- Confirm the input is a URL or an accessible local path.
- Run
summarize <input>with the configured/default model. - Add only the controls needed for the requested output.
- Return the summary or extracted content, noting any retrieval limitation.
summarize "https://example.com"
summarize "/path/to/document.pdf"
summarize "https://youtu.be/VIDEO_ID" --youtube auto
Do not select or recommend a specific model unless the user requests one. If they do, inspect the installed CLI for currently supported model syntax before passing --model.
Output controls
- Use
--length short|medium|long|xl|xxl|<chars>to control summary size. - Use
--max-output-tokens <count>for a hard output-token limit. - Use
--extract-onlyto retrieve URL content without summarizing it. - Use
--jsonwhen structured, machine-readable output is useful.
summarize "https://example.com" --length short
summarize "/path/to/document.pdf" --max-output-tokens 1200 --json
summarize "https://example.com" --extract-only
Authentication and extraction
Ensure the API key required by the configured model provider is available in the environment. Do not print or expose keys.
For difficult or blocked pages, use the optional extraction service only when configured:
- Set
FIRECRAWL_API_KEY, then use--firecrawl auto|off|always. - Set
APIFY_API_TOKENwhen YouTube processing needs the Apify fallback.
Live discovery
Treat installed CLI help as authoritative because flags, providers, and models can change:
summarize --help
summarize --help | rg -i 'model|provider|extract|youtube|firecrawl'