place.hud.getLogs

The lines this server logged, oldest first: all of one request's by its trace, or the last of a message, a level or a duration. Requires auth as one of the accounts the server names as its operators (HUD_OPERATOR_DIDS): the workspace's web session (its cookie) or a HUD access token as Bearer. Kept while HUD_LOGS is on, for 30 days at most. Each read is itself logged, with who asked and for what.

Repository @lexicons.hud.place did:plc:3tzbz4pml36u4mkresb6pdhv not from the namespace authority
Details · query
Kindquery
Authorityhud.place
Commit rev3n3jbjediwnju
Indexed
cid bafyreiemxzhdqdx2thvnvb7hw5yyb63rjo6nb3nhzj3fn3a2zemhvihlwa

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "line": {
      "description": "One line, as logged.",
      "properties": {
        "line": {
          "description": "The JSON line, as written to the log: its timestamp, level, message, target, trace_id and the fields the event had.",
          "type": "unknown"
        }
      },
      "required": [
        "line"
      ],
      "type": "object"
    },
    "main": {
      "description": "The lines this server logged, oldest first: all of one request's by its trace, or the last of a message, a level or a duration. Requires auth as one of the accounts the server names as its operators (HUD_OPERATOR_DIDS): the workspace's web session (its cookie) or a HUD access token as Bearer. Kept while HUD_LOGS is on, for 30 days at most. Each read is itself logged, with who asked and for what.",
      "errors": [
        {
          "description": "No live web session or HUD access token: sign in.",
          "name": "AuthRequired"
        },
        {
          "description": "The account is not one of this server's operators.",
          "name": "Forbidden"
        },
        {
          "description": "This server keeps no lines (HUD_LOGS is off).",
          "name": "NotFound"
        },
        {
          "description": "None of trace, message, level and minMs was given.",
          "name": "InvalidRequest"
        },
        {
          "description": "The server could not read the lines it keeps.",
          "name": "LogsUnreadable"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "lines": {
              "description": "The lines asked for, oldest first.",
              "items": {
                "ref": "#line",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "lines"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "level": {
            "description": "Only lines at this level or above.",
            "knownValues": [
              "error",
              "warn",
              "info",
              "debug",
              "trace"
            ],
            "maxLength": 16,
            "type": "string"
          },
          "limit": {
            "description": "How many, the last of those asked for. Unless given, 500 for a trace, so a request's lines come whole, and 100 otherwise.",
            "maximum": 500,
            "minimum": 1,
            "type": "integer"
          },
          "message": {
            "description": "Only lines with this message.",
            "knownValues": [
              "request",
              "outgoing",
              "mcp tool",
              "mcp tool failed",
              "mcp error",
              "logs read",
              "summary: requests",
              "summary: outgoing",
              "summary: cache"
            ],
            "maxLength": 200,
            "type": "string"
          },
          "minMs": {
            "description": "Only lines that took this many milliseconds or more.",
            "minimum": 0,
            "type": "integer"
          },
          "trace": {
            "description": "All of one request's lines, by the trace ID each carries and its answer's x-trace-id names.",
            "maxLength": 64,
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "The lines this HUD server logged, for its operators.",
  "id": "place.hud.getLogs",
  "lexicon": 1
}