Check a file
v1.file.checkCheck whether a file still exists and when it expires. Provide one of key, share_id, or share_url. Expired files return exists=false.
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": "v1.file.check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | S3 object key. | |
| share_id | No | Short share ID. | |
| share_url | No | Full share URL. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Object key. | |
| name | No | Original file name. | |
| size | No | ||
| exists | Yes | ||
| cdn_url | No | Direct CDN URL. | |
| share_url | No | Short share URL. | |
| expires_at | No | Expiry time in RFC 3339 format. | |
| preview_url | No | Preview page URL. | |
| seconds_left | No |