Tool Reference

memory

Manage memories. Actions: learn (store observation with auto-pattern detection), recall (search memories and skills), forget (soft-delete), correct (update with lineage tracking).

Aliases

Old tool names remember, recall, forget, and correct still work as aliases and route to the corresponding action on this tool.


Parameters

NameTypeRequiredDescription
actionstringYesOne of learn, recall, forget, correct.
observationstringWhat happened. Used with learn.
domainstringDomain or project name.
task_typestringType of task. Used with learn. Omit for pure memories.
tools_usedstring[]Tools used. Used with learn.
outcomestringOne of success, failure, partial, unknown. Used with learn.
tagsstring[]Tags for categorization.
querystringSearch query. Used with recall.
memory_idstringMemory ID. Used with recall (by ID), forget, correct.
includestringOne of memories, skills, all. Defaults to memories. Used with recall.
limitnumberMaximum number of results.
offsetnumberPagination offset.
formatstringOne of full, compact.
skill_detailstringOne of full, summary, name_only. Controls skill detail level in recall.
summarizebooleanCondense results into a summary. Used with recall.
correctionstringCorrected text. Used with correct.
superseded_bystringReplacement memory ID. Used with forget.

learn

Store a new observation. Kyew automatically detects patterns across related memories over time.

Parameters: observation (required), domain, task_type, tools_used, outcome, tags

{
  "name": "memory",
  "arguments": {
    "action": "learn",
    "observation": "The deploy script requires the --env production flag or it targets staging",
    "domain": "infrastructure",
    "outcome": "failure",
    "tags": ["deploy", "gotcha"]
  }
}
{
  "content": [
    {
      "type": "text",
      "text": "Memory saved (id: mem_a1b2c3). Domain: infrastructure. Pattern detection: 2 related memories found — 1 more before skill generation."
    }
  ]
}

recall

Search memories and optionally skills. Supports full-text search, domain filtering, and pagination.

Parameters: query or memory_id (at least one), domain, include, limit, offset, format, skill_detail, summarize

{
  "name": "memory",
  "arguments": {
    "action": "recall",
    "query": "deploy gotchas",
    "domain": "infrastructure",
    "include": "all",
    "limit": 5
  }
}
{
  "content": [
    {
      "type": "text",
      "text": "Found 3 memories and 1 skill:\n\n1. [mem_a1b2c3] The deploy script requires --env production flag or it targets staging (infrastructure, failure)\n2. [mem_d4e5f6] Always run npm run build:worker before deploying to catch type errors (infrastructure, success)\n3. [mem_g7h8i9] Database migrations must be run separately with db:migrate:remote (infrastructure, success)\n\nSkill: Deploy Checklist (skill_x1y2z3, active) — 3-step pre-deploy verification"
    }
  ]
}

forget

Soft-delete a memory. It stops appearing in searches but is kept in history.

Parameters: memory_id (required), superseded_by

{
  "name": "memory",
  "arguments": {
    "action": "forget",
    "memory_id": "mem_a1b2c3",
    "superseded_by": "mem_j0k1l2"
  }
}
{
  "content": [
    {
      "type": "text",
      "text": "Memory mem_a1b2c3 forgotten. Superseded by mem_j0k1l2."
    }
  ]
}

correct

Update a memory with corrected content. The original is preserved for lineage tracking.

Parameters: memory_id (required), correction (required)

{
  "name": "memory",
  "arguments": {
    "action": "correct",
    "memory_id": "mem_d4e5f6",
    "correction": "Run npm run build:worker AND npm run typecheck before deploying"
  }
}
{
  "content": [
    {
      "type": "text",
      "text": "Memory mem_d4e5f6 corrected. Previous version preserved in lineage."
    }
  ]
}
Previous
File Storage