Skip to main content

kagi ask-page

Ask Kagi Assistant about a specific web page and return the new thread plus the answer as JSON. Ask Page demo

Synopsis

Description

The kagi 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
Use this command when you want page-specific follow-up without manually pasting the URL into a browser Assistant session.

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 http or https URL
  • empty values are rejected
Examples:

<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-page always 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, while source.url and source.question preserve the original CLI inputs separately.