Loading...
Loading...
Retrieve, summarize, and inspect documents indexed by Glean. Use when getting document content, summaries, permissions, or metadata by URL.
npx skill4agent add gleanwork/glean-cli glean-documentsPREREQUISITE: Readfor auth, global flags, and security rules.../glean-shared/SKILL.md
glean documents <subcommand> [flags]| 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 |
| Flag | Type | Default | Description |
|---|---|---|---|
| boolean | false | |
| string | JSON request body | |
| json | ndjson | text | json |
glean documents summarize --json '{"documentId":"DOC_ID"}' | jq .summary# Show machine-readable schema for this command
glean schema documents
# List all available commands
glean schema | jq '.commands'