Hide a B2 file
b2_hide_fileHide a file from bucket listings while preserving it in version history. Use instead of deletion when you only need to remove it from view.
Instructions
Hides a file so it stops appearing in b2_list_files. Reversible: the data stays in version history and b2_unhide_file restores it. Prefer this over deleting when the goal is to remove something from view.
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>",
"fileName": "<fileName>"
},
"name": "b2_hide_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | Name of the file to hide. | |
| bucketName | Yes | Bucket containing the file. |