Read content
content_readReads entries, categories, comments, filters, albums and video channels of a content module (news, blog, publ, board, photo, video, faq, dir, load, gb, stuff, mchat, polls) on the site.
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": {
"action": "<action>"
},
"name": "content_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Record, category, comment, or forum entity id. | |
| date | No | List filter date yyyy-mm-dd or yyyy. | |
| page | No | List page, from 1. | |
| sort | No | List sort asc|desc. | |
| tree | No | comments_all: yes tree / no flat. | |
| action | Yes | Operation to run. Each oneOf entry describes one action and lists its parameters. | |
| detail | No | Record form of a paged list. brief (default): the fields that identify a record, without full texts and HTML; for entries id, title up to 120 characters, status, date added (UTC, ISO 8601), public URL, category id and an excerpt up to 200 characters. Titles and excerpts are plain text; names, logins, paths, URLs and other identifiers are as the source gives them. full: complete records. A list reply is at most 30 KB and holds every record of its page: a record that does not fit in full comes in brief form, marked detail brief, the reply counts such records in brief_records, and get by id returns the complete record; brief records shorten their excerpts, then keep only their ids and titles. Only a page that does not fit even so is cut: truncated is true and next names the offset to go on from. | |
| module | No | Content module code. poll is the same module as polls (module and settings lists name it poll). Not used by comments_all. The forum has its own forum_* tools. | |
| offset | No | Records to skip from the start of a list; overrides page. A list reply cut at its size limit names the offset that follows in next. | |
| pending | No | 1 = moderation / pending-only list. | |
| site_id | No | Site to read: site_id from list_sites. Without it the call reads the site chosen with select_site; pass it when several sites or chats are in use. | |
| user_id | No | Act-as user id. | |
| category | No | Category id (list filter / add). | |
| per_page | No | Records per page: 1-50, 20 by default, larger values count as 50. | |
| channel_id | No | Video channel id. | |
| filter_num | No | Filter number 1-3. |