ncloud_ncs_head_object
Retrieve an object's metadata—size, type, ETag, storage class, version ID, restore status, and Object Lock retention—without downloading the file, and confirm existence with exists=false instead of an error.
Instructions
[Ncloud Storage] Get an object's metadata without downloading it (HEAD /{key}): size, type, ETag, storage class, version ID, restore status and Object Lock retention / legal hold. Returns exists=false on 404 (object missing, or its current version is a delete marker on a versioned bucket) instead of an error.
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": {
"bucketName": "<bucketName>",
"key": "<key>"
},
"name": "ncloud_ncs_head_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Object key (path) to check | |
| versionId | No | Version ID of the object (versioning-enabled buckets). Omit for the current version | |
| bucketName | Yes | Name of the Ncloud Storage bucket | |
| expectedBucketOwner | No | x-amz-expected-bucket-owner — expected owner account number of the bucket: the account number inside any resource NRN (nrn:PUB:<service>:<region>:<accountNo>:…, e.g. from ncloud_resource_list_resources). The 36-char owner ID from ncloud_ncs_list_buckets is rejected as InvalidBucketOwnerAWSAccountID. A different owner is rejected with AccessDenied (403) |