Zum Inhalt
Für Agenten

agent_log_write

Write Agent Log Entry

Markdown Tools als JSON

Beschreibung

Call this immediately after you complete a meaningful action that a future session might otherwise repeat — e.g. you commented on a task asking for an estimate, DM'd a user about a missed standup, or escalated something to a workspace lead. The next session will read your entries via agent_log_list before acting, and skip duplicates.

Entries are append-only, scoped to (you, this account), and invisible to other users. There is no update or delete.

Use a stable, machine-friendly subject so write and read line up — e.g. "task:ENG-123", "standup:user_max:2026-05-07", "user:user_abc123". Use tags for short reusable labels you'll filter on later, e.g. ["estimate-reminder"], ["standup-followup", "escalated"]. Both are optional but strongly recommended — without them you can only retrieve by recency.

Example: after asking @max for an estimate on ENG-123, call with body: "Asked @max for estimate", subject: "task:ENG-123", tags: ["estimate-reminder"].

body ≤ 8 KB; subject ≤ 200 chars.

Zugriff

Zugriffsprofil: basic. Module: none. Die Freigabe im Profil ersetzt keine Account-, Workspace- oder Rollenberechtigung.

Parameter

Name Typ Pflicht Beschreibung
account_id string Ja
body string Ja What you just did. ≤ 8 KB.
subject string Nein Stable identifier you'll match on later, e.g. 'task:ENG-123'. ≤ 200 chars.
tags array Nein Short labels for OR-filtering, e.g. ['estimate-reminder'].

Eingabeschema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "account_id": {
      "type": "string"
    },
    "body": {
      "type": "string",
      "description": "What you just did. ≤ 8 KB."
    },
    "subject": {
      "type": "string",
      "description": "Stable identifier you'll match on later, e.g. 'task:ENG-123'. ≤ 200 chars."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Short labels for OR-filtering, e.g. ['estimate-reminder']."
    }
  },
  "required": [
    "account_id",
    "body"
  ],
  "type": "object"
}

Ausgabeschema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "entry": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "body": {
          "type": "string"
        },
        "subject": {
          "type": [
            "string",
            "null"
          ]
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "created_at": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "body",
        "tags",
        "created_at"
      ]
    }
  },
  "required": [
    "entry"
  ],
  "type": "object"
}
Seiten