Document Management
Manage document metadata, categories, visibility scopes, and descriptions using the jime docs subcommands.
docs read
Display the full text of a document from its active interpretation. Useful for viewing complete session transcripts or full rulebook content.
| Argument | Type | Description |
|---|---|---|
<file-or-id> |
string | Source filename or #N document ID |
Examples
# Read a session transcript
jime docs read "SD-SoS-Sesh00-20260317.mp3"
# Read by document ID
jime docs read "#4"
Tip
Pipe the output to a pager or file for long documents: jime docs read "#4" | less
docs list
List all documents in the registry with their metadata and chunk counts.
Displays a table with:
| Column | Description |
|---|---|
| ID | Document identifier (#N format) |
| File | Source filename |
| Category | Assigned category |
| Scope | Visibility: all, dm-only, or disabled |
| Description | Human-readable description |
| Chunks | Number of stored chunks |
| Updated | Last registry update |
docs set-scope
Set the visibility scope of a document, controlling which audiences can see its content in search results.
| Argument | Type | Description |
|---|---|---|
<file-or-id> |
string | Source filename or #N document ID |
<scope> |
string | Visibility scope |
Scopes
| Scope | Who can see it | Use case |
|---|---|---|
all |
Everyone (players and DMs) | Rulebooks, public campaign info |
dm-only |
DM only | Monster stats, secret plot notes, session prep |
disabled |
No one | Temporarily hidden documents |
Examples
# Make a rulebook visible to players
jime docs set-scope "rulebook.pdf" "all"
# Hide monster stats from players
jime docs set-scope "monsters.pdf" "dm-only"
# Temporarily disable a document
jime docs set-scope "#3" "disabled"
docs set-category
Assign a category to a document for organizing and filtering.
| Argument | Type | Description |
|---|---|---|
<file-or-id> |
string | Source filename or #N document ID |
<category> |
string | Category name (free-form) |
Categories are free-form labels — use whatever makes sense for your campaign. Common examples: rules, sessions, npcs, maps, house-rules.
Examples
docs remove-category
Remove the category from a document, leaving it uncategorized.
| Argument | Type | Description |
|---|---|---|
<file-or-id> |
string | Source filename or #N document ID |
docs describe
Set a human-readable description for a document.
| Argument | Type | Description |
|---|---|---|
<file-or-id> |
string | Source filename or #N document ID |
<description> |
string | Description text |
Examples
jime docs describe "rulebook.pdf" "Core Shadowdark RPG rules and mechanics"
jime docs describe "#1" "Session notes from January 15, 2024"
docs remove
Remove a document's registry entry, reverting it to default behavior (scope all, no category, no description). This does not delete the document's chunks from the vector store.
| Argument | Type | Description |
|---|---|---|
<file-or-id> |
string | Source filename or #N document ID |
Note
The #N document ID syntax works across all docs subcommands. Use jime docs list to find document IDs.