所有工具

get_audit_log

诊断与系统 · macOS · Windows

效果: 读取. 状态: 受限可用.

“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。

macOS

用途

从本地审计日志返回近期 LMCP 工具调用历史记录。每条记录显示时间戳、工具名称、调用来源(本地/云端)、成功状态和持续时间。适用于 GDPR 第 30 条合规报告和调试。

必填输入

此平台的架构未声明必填输入,但仍可能存在可选选择器或运行时要求。

权限与确认

架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。

英文规范技术架构macOS
{
  "properties": {
    "limit": {
      "description": "Number of recent entries to return (default 50, max 200)",
      "type": "integer"
    },
    "ok": {
      "description": "Filter to successes (true) or failures (false) only (optional)",
      "type": "boolean"
    },
    "tool": {
      "description": "Filter to entries for a specific tool name (optional)",
      "type": "string"
    }
  },
  "required": [],
  "type": "object"
}

文档示例

get_audit_log 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "limit": 5
}

Windows

用途

从本地审计日志返回近期 LMCP 工具调用历史记录。每条记录显示工具名称和 UTC 时间戳。注意:此存储只记录工具名称和时间,不记录调用来源、成功/失败或持续时间,因此 `ok` 筛选器不起作用。

必填输入

此平台的架构未声明必填输入,但仍可能存在可选选择器或运行时要求。

权限与确认

架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。

英文规范技术架构Windows
{
  "properties": {
    "limit": {
      "description": "Number of recent entries to return (default 50, max 200)",
      "type": "integer"
    },
    "ok": {
      "description": "No effect — the local store does not record success/failure. Accepted for Mac parity.",
      "type": "boolean"
    },
    "tool": {
      "description": "Filter to entries for a specific tool name (optional)",
      "type": "string"
    }
  },
  "required": [],
  "type": "object"
}

文档示例

get_audit_log 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "limit": 5
}