wcc_doc_download
Downloads a WebCenter Content document binary to a local file using a document name or revision ID, streams it directly to disk, and returns SHA-256 and byte count for verification.
Instructions
Download a document binary from WebCenter Content to a local file.
Streams the response directly to disk — large documents do not buffer in memory.
Filesystem access is governed by the server's path policy. In stdio / Electron modes the path must resolve inside one of the filesystem roots the MCP client advertised (or the Electron app's user-data directory). In hosted mode this tool is disabled — call wcc_doc_get instead and consume the metadata directly.
Existing files at the target path are overwritten silently. Returns sha256 + bytesWritten so the caller can verify the download.
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": {
"ref": "<ref>",
"outputPath": "<outputPath>"
},
"name": "wcc_doc_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | How to identify the target document. Supply EITHER {dDocName: "..."} OR {dID: "..."}. Use dDocName when you have the public document name; use dID when you have an internal revision ID. | |
| rendition | No | Optional WCC rendition selector (e.g. "primary", "web-viewable", "thumbnail"). When omitted, WCC returns the document's default primary rendition. | |
| outputPath | Yes | Local filesystem path to write the document binary to. Must resolve under a filesystem root the server is permitted to access. The parent directory must exist. Existing files are overwritten. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dID | Yes | ||
| sha256 | Yes | ||
| dDocName | Yes | ||
| outputPath | Yes | ||
| contentType | Yes | ||
| bytesWritten | Yes |