kagi ask-page
Ask Kagi Assistant about a specific web page and return the new thread plus the answer as JSON.
Synopsis
Description
Thekagi ask-page command starts a new Assistant thread focused on one page URL. It mirrors the live Kagi web flow used by “Continue in Assistant” from search results, but packages it as a direct CLI command.
The response includes:
- stream metadata
- the normalized source URL and question
- the created Assistant thread
- the Assistant reply payload
Authentication
Required:KAGI_SESSION_TOKEN
This command uses the subscriber Assistant web-product flow.
Arguments
<URL> (Required)
Absolute page URL to discuss.
Constraints:
- must be an absolute
httporhttpsURL - empty values are rejected
<QUESTION> (Required)
Question to ask about the page.
Examples:
Output Format
Examples
Basic Usage
Extract Only the Answer
Continue the Thread in Assistant
Save a Page Analysis
Error Cases
Typical configuration errors:Notes
ask-pagealways starts a new Assistant thread in this version.- For follow-up questions, continue the returned thread with
kagi assistant --thread-id .... - The Assistant response keeps the combined prompt in
message.prompt, whilesource.urlandsource.questionpreserve the original CLI inputs separately.