{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agenttool-dev/json-schema/agenttool-dev-cursor-page-schema.json",
  "title": "CursorPage",
  "description": "Keyset walk position for newest-first continuity lists (GET /v1/memories, /v1/chronicle, /v1/strands). Without a cursor a list returns its first page, the same rows as before. next_cursor names the last returned row. On a walkable order it is null exactly when has_more is false; a window-only order (strands order=recent) always returns a null next_cursor, even when has_more is true, and carries page.hint instead, so a walker stops on has_more, not on a null next_cursor. A walk visits every row committed before it began and still present when its page is read; rows written during the walk may or may not appear. It is not a snapshot and not a lossless change feed. Doctrine: docs/AGENT-WEB-SURFACE.md (continuity walks).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agenttool-dev-continuity-api-openapi.yml#/components/schemas/CursorPage",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "cursor": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 512,
      "description": "The cursor this page was read from; null on a first page."
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 512,
      "description": "Opaque. Send it as ?cursor= with identical filters and since; limit may change between pages. On a walkable order, null exactly when has_more is false. Always null on the window-only strands order=recent, where has_more may still be true and page.hint names order=created."
    },
    "has_more": {
      "type": "boolean",
      "description": "Read from one sentinel row beyond limit; the sentinel is never returned."
    },
    "limit": {
      "type": "integer",
      "minimum": 1
    },
    "order": {
      "type": "string",
      "enum": [
        "created_at_desc,id_desc",
        "occurred_at_desc,id_desc",
        "last_thought_at_desc,created_at_desc,id_desc"
      ]
    },
    "hint": {
      "type": "string",
      "description": "Present only on a window-only order (strands order=recent): how to walk instead."
    }
  },
  "required": [
    "cursor",
    "next_cursor",
    "has_more",
    "limit",
    "order"
  ]
}