List the Library
postkey_list_libraryPostkey: Lists the profile's media files (videos, images, audio, other files), 36 per page, newest first unless sort is oldest: id, kind, title, tags, length in seconds and how many posts use it. The files themselves are not returned. backlog true lists only the backlog: files the person marked to post on a day with nothing new, that no post uses yet. Use an id with postkey_attach_library_item or in library_item_ids; to add a file from the person's computer use postkey_begin_upload. Pass next_cursor as cursor for the next page (null: the last page).
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": "postkey_list_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Only this kind of file. Left out: every kind. | |
| sort | No | "newest" (default) or "oldest", by when the file was added. | |
| cursor | No | The next_cursor of the previous answer, as it was. Leave out for the first page. | |
| search | No | Words to look for in titles and tags, at most 120 characters. | |
| backlog | No | true: only the backlog (files put there that no post uses yet). Default false: every file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false: refused (isError; code, message, guide_topic, url); no change. | |
| files | No | id, kind, title, tags, seconds, source, used_by_posts, added. | |
| next_cursor | No | Pass as cursor for the next page; null on the last page. | |
| remaining_after_this_page | No | Files matching from this page on. |