本文へスキップ
すべてのツール

word_create

書類 · macOS · Windows

効果: 書き込み. 状態: 条件付き提供.

「条件付き提供」は、バージョン、プラットフォーム、権限、アカウント、設定に依存する可能性を示し、すべての環境で有効という意味ではありません。

macOS

目的

指定したテキスト内容(および、見出しとして表示される任意のタイトル)で、`path` に新しい Word(.docx)ドキュメントを作成します。confirm=true が必要です。渡さない場合は、ファイルを作成せず、書き込まれる内容のプレビューを返します。パスは LMCP が書き込める場所である必要があります。デスクトップ/書類/ダウンロードでは、一度だけ「ファイルとフォルダ」の許可が必要になることがあります(システム設定 → プライバシーとセキュリティ → ファイルとフォルダ)。{created, path} を返します。OneDrive または Google Drive のパスには onedrive_write_file / gdrive_write_file を使ってください。既存のドキュメントに追記するには word_append を、読み取るには word_read を使います。

必須入力

入力名はツールが要求する正確な形式のままです。英語の正規技術定義は下の展開可能なスキーマにあります。

権限と確認

スキーマには明示的な確認パラメータがあります。プレビューを確認し、プラットフォーム契約に従って実操作を承認してください。

英語の正規技術スキーマ — macOS
{
  "properties": {
    "confirm": {
      "description": "Must be true to create",
      "type": "boolean"
    },
    "content": {
      "description": "Document text content",
      "type": "string"
    },
    "overwrite": {
      "description": "Required (with confirm) to REPLACE a file that already exists at path. Without it an existing file is never touched.",
      "type": "boolean"
    },
    "path": {
      "description": "Output path for the .docx file",
      "type": "string"
    },
    "title": {
      "description": "Document title (optional)",
      "type": "string"
    }
  },
  "required": [
    "path",
    "content"
  ],
  "type": "object"
}

ドキュメント例

word_create のドキュメント例です。この例は実行しないでください。表示される引数は架空のデータセットに属します。実際に呼び出す前に実在する識別子を確認し、承認を得てください。

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

Windows

目的

指定した内容で新しい Word(.docx)文書を作成します。path に既存のファイルがある場合は、overwrite=true を指定したときにのみ置き換えられます。

必須入力

入力名はツールが要求する正確な形式のままです。英語の正規技術定義は下の展開可能なスキーマにあります。

権限と確認

スキーマには明示的な確認パラメータがあります。プレビューを確認し、プラットフォーム契約に従って実操作を承認してください。

英語の正規技術スキーマ — Windows
{
  "properties": {
    "confirm": {
      "description": "Must be true to create the file",
      "type": "boolean"
    },
    "content": {
      "description": "Text content. Each line becomes a paragraph.",
      "type": "string"
    },
    "overwrite": {
      "description": "Required (true) to REPLACE a file that already exists at path. Without it an existing file is refused, never replaced.",
      "type": "boolean"
    },
    "path": {
      "description": "Absolute path for the new .docx file",
      "type": "string"
    },
    "title": {
      "description": "Document title (optional)",
      "type": "string"
    }
  },
  "required": [
    "path",
    "content"
  ],
  "type": "object"
}

ドキュメント例

word_create のドキュメント例です。この例は実行しないでください。表示される引数は架空のデータセットに属します。実際に呼び出す前に実在する識別子を確認し、承認を得てください。

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