List trash
trash_listList what is in the trash, newest first, with when each item was deleted, by whom, and when it purges (30 days after deletion). Omit workspaceId, team and account for your own trash (standalone artifacts, bundles, personal folders, personal workspaces); pass team for a team's folders and workspaces, or workspaceId for the artifacts and folders deleted in that workspace. account (an account id or alias) reads another account's own trash, for a platform admin only (anyone else: FORBIDDEN); a platform admin also reads any team's and any workspace's trash. type lists one type only (one that trash holds). A deleted folder or workspace is one entry. Restore an entry with trash_restore, by its id.
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": "trash_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | No | A team's trash, by slug or id: its folders and workspaces. | |
| type | No | Only entries of this type. Your own trash holds all four; a team's folders and workspaces; a workspace's artifacts and folders. | |
| limit | No | Page size, 1 to 100. | |
| offset | No | The nextOffset of the previous page. | |
| account | No | Another account's own trash, by account id or alias (platform admins only; anyone else is refused FORBIDDEN). | |
| workspaceId | No | A workspace's trash, by its id or its slug: the artifacts and folders deleted in it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| nextOffset | Yes |