glean-documents
Original:🇺🇸 English
Translated
Retrieve, summarize, and inspect documents indexed by Glean. Use when getting document content, summaries, permissions, or metadata by URL.
3installs
Sourcegleanwork/glean-cli
Added on
NPX Install
npx skill4agent add gleanwork/glean-cli glean-documentsTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →glean documents
PREREQUISITE: Readfor auth, global flags, and security rules.../glean-shared/SKILL.md
Retrieve and summarize Glean documents. Subcommands: get, get-by-facets, get-permissions, summarize.
bash
glean documents <subcommand> [flags]Subcommands
| Subcommand | Description |
|---|---|
| Retrieve document metadata by URL or ID |
| Retrieve documents matching facet filters |
| Inspect who has access to a document |
| Generate an AI summary of a document |
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
| boolean | false | |
| string | JSON request body | |
| json | ndjson | text | json |
Examples
bash
glean documents summarize --json '{"documentId":"DOC_ID"}' | jq .summaryDiscovering Commands
bash
# Show machine-readable schema for this command
glean schema documents
# List all available commands
glean schema | jq '.commands'