Get message
get_messageFetch a Graylog message by reference, read truncated fields in full, or pull surrounding messages within a time window for debugging and incident analysis.
Instructions
One message with all its fields (redacted), by ref. Long values are cut to keep the answer small: 'cut_fields' names them with their size; pass those names in 'fields' to read them. With context_seconds: the messages logged around it instead.
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": {
"ref": "<ref>"
},
"name": "get_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | 'index/message_id' from a previous result's 'ref', or a message id | |
| limit | No | Context: max messages, split before/after (60) | |
| query | No | Context: extra Lucene filter inside the window | |
| scope | No | Context from the same host/app ('source', default), same streams, or 'all' | |
| fields | No | Without context_seconds: only these fields, each up to its full size; ['*'] for all of them in full | |
| instance | No | Instance from describe, e.g. 'payment/prod'; the default when omitted | |
| context_seconds | No | Return the messages logged within ±this many seconds instead | |
| compact_stacktrace | No | Without context_seconds: fold framework stack frames (default true); false for the raw trace |