List Library files
list_library_filesList workbooks in the user's Library to find a library_file_id for opening a session or confirm a saved file landed; filter by file name and limit results.
Instructions
List the workbooks in the user's Library: the files this account owns, newest-updated first, including everything save_to_library saved. Use it to find a library_file_id to open with create_session, or to check that a save landed. Returns {files: [{library_file_id, name, size_bytes, created_at, updated_at, latest_version: {seq, message, created_at}}], truncated}, times in ISO 8601; latest_version is the newest saved version and its name. Pass query to match part of a file name (ignoring case) and limit for how many to return (1-200, default 50); truncated is true when more files match, so narrow the query or raise limit. Shared files and the trash are left out. Fails with library_unavailable when the Library isn't connected. Reads your Basis Library through the API (needs an API key).
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": "list_library_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Most files to return (1-200, default 50) | |
| query | No | Part of a file name to match, ignoring case, e.g. "pro forma" (omit for every file) |