Protect link
protect_linkProtect an owned link by enabling capability token and readable secret protection, returning a share URL and secret code. Optionally specify a label or duration (defaults to 24 hours).
Instructions
Enable capability token and readable secret protection on an owned link (Pro plan required). Returns the share URL (with #cap=...) and the human-readable secret code. If label is omitted, the first owned link returned by links is protected. If ttl is omitted, protection lasts 24 hours. Calling this on an already-protected link replaces the existing credentials, so previous share URLs stop working. To rotate credentials instead, use renew_link; to change only the duration, use update_ttl.
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": "protect_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | Optional protection duration (e.g. 24h, 3d, 7d); defaults to 24 hours. | |
| label | No | Label of the link to protect (optional; defaults to the first owned link returned by links). |