Search messages
search_messagesSearch the text of messages across your accounts (or one account or channel), newest first, with a snippet around the match. It searches Spaces' own copy: everything held since the account was connected, with older history filling in gradually in the background. It never asks the platform. from is me or them; since limits by time. Read-only. Pass view: 'summary' or fields for a shorter answer.
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": {
"q": "<q>"
},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | ||
| from | No | ||
| view | No | summary: a compact item shape (ids, names, times, short text) to save tokens. full (default): everything. | |
| limit | No | ||
| since | No | ||
| fields | No | Comma-separated item fields to keep, such as id,name,last_message. id is always kept. | |
| channel | No | ||
| account_id | No |