Fetch Topic
fetch_topicRetrieve all project messages tagged with a specific topic, regardless of recipient, to review relevant discussions and track updates.
Instructions
Fetch all messages in a project with a given topic tag, regardless of recipient.
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": {
"project_key": "<project_key>",
"topic_name": "<topic_name>"
},
"name": "fetch_topic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max number of messages to return (default 50). | |
| format | No | ||
| since_ts | No | ISO-8601 timestamp; only messages newer than this are returned. | |
| agent_name | No | ||
| topic_name | Yes | The topic tag to filter by (case-insensitive). | |
| project_key | Yes | Project identifier. | |
| unread_only | No | When True, restrict to messages where the viewer has a recipient row that has not been explicitly marked read. This narrows beyond the default sender-or-recipient visibility — messages the viewer sent (but is not a recipient of) and broadcast/thread-visible messages where the viewer has no MessageRecipient row are excluded under this flag, because "unread" is only well-defined for a recipient row. A bare `fetch_topic` call does NOT mark messages read. | |
| include_bodies | No | Include full Markdown bodies in the payloads (default true). | |
| registration_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |