messages_bot_by_query
Mark all messages matching a query as bot-generated (use instead of messages_bot for large groups, e.g. one client IP). Changes data. Unless the user asked for exactly this change, say which messages you will change and get their confirmation first. First run messages_count with the same logId/severity/query/from and show the user the number (it also counts messages already marked as bot, which are skipped). Returns matchedCount, updatedCount, capped and a few sample messages.
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": {
"logId": "<logId>",
"query": "<query>",
"severity": "<severity>"
},
"name": "messages_bot_by_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Search to this date. | |
| from | No | Search from this date. | |
| logId | Yes | The ID (Guid) of the log. | |
| query | Yes | Required. Full-text or Lucene query, e.g. statusCode:500 && url:*\/api\/*. Searchable fields are listed in the server instructions. | |
| hidden | No | Include hidden messages (default false). | |
| severity | Yes | Required. Severity to match: Verbose|Debug|Information|Warning|Error|Fatal. | |
| maxMessages | No | Max messages to update per call (default 10000, max 50000). If capped is true, call again. |