word_add_code
Add a code block to a Word document by providing the document ID, code content, and optional programming language for syntax highlighting.
Instructions
添加代码块
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"docId": "<docId>",
"code": "<code>"
},
"name": "word_add_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | 代码内容 | |
| docId | Yes | 文档ID | |
| language | No | 编程语言 |