Get the bin tree
get_bin_treeReturns a nested tree of a Premiere Pro project bin, including sub-bins, clips, and sequences, with depth and item-inclusion controls for structured project browsing.
Instructions
Return the Project panel as a nested tree starting at a bin (default: the project root). Every bin node has item_id, name, path, the counts bins and items, and a contents array holding its sub-bins and items; the result also has total_bins and total_items. Set include_items=false for a bins-only outline. Bins deeper than max_depth are returned without contents and marked truncated=true. Search bins are leaves marked smart_bin=true. Use list_project_items for a flat list.
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": "get_bin_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bin_id | No | Stable id of the bin. Omit all bin_* arguments to use the project root. | |
| bin_name | No | Bin name; the first match is used. | |
| bin_path | No | Bin path, e.g. "Footage/Day 1". | |
| max_depth | No | How many levels of sub-bins to expand below the start bin, 0-50. 0 = only its direct children (sub-bins not expanded). Default 10. | |
| include_items | No | Include clips and sequences, not only bins. Default true. |