get_document
Retrieve a document's complete JSON from DingCard; provide a path to save it as a .json file and get the file path, or omit path to return the document directly.
Instructions
取回一份文档的完整 JSON:给 path 时写成 JSON 文件(目录不存在会创建)并返回路径,不给时直接返回文档。写成文件的文档可以拖进叮卡「我的项目」,或之后用 documentPath 传回来。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | 写到这个 .json 文件,而不是直接返回文档 | |
| document | No | 完整的 v44(或 v1–43 旧版)文档 JSON,可替代 documentId | |
| documentId | No | 创建或修改文档的工具返回的 documentId(推荐:不必来回传整份文档) | |
| documentPath | No | 文档 JSON 文件的路径,可替代 documentId |