List files in a B2 bucket
b2_list_filesList files in a Backblaze B2 bucket, optionally filtered by name prefix. Returns file details such as name, ID, size, content type, and upload time, with pagination support.
Instructions
Lists one page of current files in a bucket, as JSON objects with fileName, fileId, contentLength, contentType, and uploadedAt. Optionally filtered by name prefix. The result reports truncated and nextFileName when more files exist beyond the page.
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>"
},
"name": "b2_list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum files to return. Defaults to 100. | |
| prefix | No | Only list files whose name starts with this prefix. | |
| bucketName | Yes | Name of the bucket to list. |