wcc_doc_capabilities
Probes which operations the calling user can perform on a WebCenter Content document and returns capability booleans, enabling permission checks before destructive actions.
Instructions
Probe which operations the calling user can perform on a document.
Returns a map of capability name → boolean. When testedCapabilities is supplied, only those keys appear in the result — handy for narrow permission checks before invoking a destructive action.
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>",
"testedCapabilities": "<testedCapabilities>"
},
"name": "wcc_doc_capabilities"
}
}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. | |
| testedCapabilities | Yes | Capability names to test against the document. WCC requires at least one — it does not return a "full set" when this is empty. Defaults to ["MOVE","COPY","DELETE"]; override to probe other capabilities WCC exposes for the document. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dID | No | ||
| dDocName | No | ||
| capabilities | Yes |