version: "1.0.0" name: glean-cli-messages description: "Retrieve indexed messages from Slack, Teams, and other messaging platforms via Glean. Use when searching for or reading specific messages."
glean messages
PREREQUISITE: Read ../glean-cli/SKILL.md for auth, global flags, and security rules.
Retrieve Glean messages. Subcommands: get.
bash
glean messages <subcommand> [flags]
Subcommands
| Subcommand | Description | |
|---|
get | Retrieve a specific message | |
Flags
| Flag | Type | Default | Description | |
|---|
--json | string | | JSON request body (required) (required) | |
--output | json \ | ndjson \ | text | json | | |
Examples
bash
glean messages get --json '{"messageId":"MSG_ID"}' | jq .
Discovering Commands
bash
# Show machine-readable schema for this command
glean schema messages
# List all available commands
glean schema | jq '.commands'