所有工具

word_append

文档 · macOS · Windows

效果: 写入. 状态: 受限可用.

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

macOS

用途

在 `path` 指定的现有 Word(.docx)文档末尾追加文本,同时保留文档现有内容和格式。需要 confirm=true;不传时只返回预览,不修改文件。文件访问规则与 word_create 相同(Desktop/Documents/Downloads 可能需要“文件与文件夹”授权)。返回 {appended, chars_appended, path}。创建新文档请使用 word_create;读取文档请使用 word_read。

必填输入

输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。

权限与确认

架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。

英文规范技术架构macOS
{
  "properties": {
    "confirm": {
      "description": "Must be true to modify",
      "type": "boolean"
    },
    "content": {
      "description": "Text to append",
      "type": "string"
    },
    "path": {
      "description": "Path to the existing .docx file",
      "type": "string"
    }
  },
  "required": [
    "path",
    "content"
  ],
  "type": "object"
}

文档示例

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

{
  "confirm": false,
  "content": "Meeting agenda: review the launch checklist.",
  "path": "/Users/demo/Documents/meeting-notes.docx"
}

Windows

用途

向现有 Word(.docx)文档追加文本。

必填输入

输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。

权限与确认

架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。

英文规范技术架构Windows
{
  "properties": {
    "confirm": {
      "description": "Must be true to append",
      "type": "boolean"
    },
    "content": {
      "description": "Text to append",
      "type": "string"
    },
    "path": {
      "description": "Path to .docx file",
      "type": "string"
    }
  },
  "required": [
    "path",
    "content"
  ],
  "type": "object"
}

文档示例

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

{
  "confirm": false,
  "content": "Meeting agenda: review the launch checklist.",
  "path": "C:\\Users\\demo\\Documents\\meeting-notes.docx"
}