textrawl
byJeff Green

list_entities

List all known entities with pagination

List all entities stored in memory with optional filtering and pagination.

Parameters

ParameterTypeRequiredDefaultDescription
entityTypesenum[]OPTIONALallFilter by entity types
limitnumberOPTIONAL50Max results (1-100)
offsetnumberOPTIONAL0Pagination offset

Example Request

{
  "entityTypes": ["person", "organization"],
  "limit": 20,
  "offset": 0
}

Response

Compact Mode (Default)

When COMPACT_RESPONSES=true (default), responses use short keys to reduce token usage by 40-60%:

{"n":45,"e":[{"id":"550e8400","n":"Jeff","t":"person"},{"id":"550e8401","n":"Acme Corp","t":"organization"}]}

Key mapping: n=total count, e=entities, t=type

Verbose Mode

When COMPACT_RESPONSES=false:

{
  "total": 45,
  "returned": 20,
  "offset": 0,
  "entities": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Jeff",
      "type": "person",
      "description": null,
      "updatedAt": "2026-01-05T10:00:00Z"
    },
    {
      "id": "550e8400-e29b-41d4-a716-446655440001",
      "name": "Acme Corp",
      "type": "organization",
      "description": null,
      "updatedAt": "2026-01-04T15:30:00Z"
    }
  ]
}

Use Cases

List All People

{
  "entityTypes": ["person"],
  "limit": 100
}

List Projects

{
  "entityTypes": ["project"]
}

Paginated Browse

First page:

{
  "limit": 20,
  "offset": 0
}

Next page:

{
  "limit": 20,
  "offset": 20
}

Overview of All Entities

{
  "limit": 100
}

Pagination

Use offset and limit to paginate through large result sets:

  • total: Total count of matching entities
  • returned: Count of entities in this response
  • hasMore: Check if offset + returned < total

Sorting

Entities are returned sorted by updated_at in descending order (most recently updated first).

Errors

ErrorCauseFix
Invalid limitLimit outside 1-100 rangeSet limit between 1 and 100
Invalid offsetNegative offset valueUse offset >= 0
Invalid entity typeUnknown entity type in filterUse valid types: person, concept, project, preference, fact, location, organization
Memory not enabledENABLE_MEMORY feature flag is falseSet ENABLE_MEMORY=true
Database errorConnection or query failureCheck DB connectivity and logs

On this page