generate_link
Create shareable links for documents with view, edit, or comment permissions. Generate access-controlled URLs for markdown files in the mdshare collaboration system.
Instructions
Generate a share link for a document with specific permissions. Requires admin access. If the document is in this MCP server's local store, 'key' is optional.
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": {
"document_id": "<document_id>",
"permission": "<permission>"
},
"name": "generate_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | Document ID | |
| key | No | Admin key. Optional if the document is in this MCP server's local store. | |
| permission | Yes | Permission level for the link | |
| label | No | Optional label for the link |