ONE things:list
← Receivers

things:list

things family

Search your own group's things by words: tasks, pages, social posts and drafts, products and courses. The group is the one your sign-in acts for, never one you name. Each hit has an id for things:get and an absolute url to open it. Reads D1 and the task board snapshot only; `capped` is true when any kind had more hits than were returned.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
member
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/things:list \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "query": "launch plan" }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • query string required Words to look for in titles, names, notes and bodies. Matched as a plain substring, case-insensitive.
  • limit number optional Most hits in all (default 20). Each kind is read at most this many plus one, so `capped` can say a kind was cut.

Response

What comes back from the call.

  • ok boolean
  • group string The group that was searched: the caller's own.
  • results object[]
  • capped boolean True when some kind had more hits than were returned, or the task board snapshot was itself cut.
  • counts object Hits read per kind before the cut (a kind read at limit+1 shows limit+1).
  • notes string[] What could not be read, in plain words: a missing kind is never an empty one.
  • error string no_group (no workspace on this sign-in), forbidden (the sign-in does not control its group), no_db

Traffic

Every call to things:list, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names things:list, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 2
  • one.ie/web/src/lib/receiver-index.generated.ts:540
  • one.ie/web/src/lib/resolvers/things.ts:216
MCP 1
  • search · packages/mcp/src/tools/knowledge.ts:67
CLI 2
  • packages/cli/src/lib/receivers-index.generated.ts:565
  • packages/cli/src/lib/receivers.generated.ts:565
→

Answered by

things:list one.ie/web/src/lib/resolvers/things.ts:379 Dispatched through POST /api/ask/things:list, after the envelope validates the payload.

things family · 1 more

JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Words to look for in titles, names, notes and bodies. Matched as a plain substring, case-insensitive."
    },
    "limit": {
      "description": "Most hits in all (default 20). Each kind is read at most this many plus one, so `capped` can say a kind was cut.",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "query"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "group": {
      "description": "The group that was searched: the caller's own.",
      "type": "string"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "`<kind>:<key>`, e.g. task:01a2…, page:home, post:abc, product:p_1, course:intro. Pass it to things:get."
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "description": "Absolute URL a signed-in person can open."
          },
          "kind": {
            "type": "string",
            "enum": [
              "task",
              "page",
              "post",
              "product",
              "course"
            ]
          },
          "snippet": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "url",
          "kind"
        ]
      }
    },
    "capped": {
      "description": "True when some kind had more hits than were returned, or the task board snapshot was itself cut.",
      "type": "boolean"
    },
    "counts": {
      "description": "Hits read per kind before the cut (a kind read at limit+1 shows limit+1).",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "number"
      }
    },
    "notes": {
      "description": "What could not be read, in plain words: a missing kind is never an empty one.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "error": {
      "description": "no_group (no workspace on this sign-in), forbidden (the sign-in does not control its group), no_db",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}