searching-documents-with-coda
Overview
Query and export content from Coda documents using the coda CLI. Supports searching documents, listing pages and tables, exporting page content as Markdown/HTML, and exporting table data as JSON/CSV.
Reference Documentation:
- coda-reference.md — Full command reference with all options
- digital-science-reference.md — Digital Science documentation links
Authentication: Requires CODA_API_KEY environment variable. Get your key at https://coda.io/account
Quick Start
# Verify authentication
coda auth status
# Search for documents
coda docs search "PRD"
# List pages in a document
coda pages list DOC_ID
# Export page as Markdown
coda pages export DOC_ID PAGE_ID --format markdown
# Export table data as JSON
coda export DOC_ID TABLE_ID --format json
Command Reference
Document Commands
| Command | Description |
|---|---|
coda docs list |
List all accessible documents |
coda docs list --query "PRD" |
Search documents by name |
coda docs list --mine |
Show only your documents |
coda docs list --limit 10 |
Limit results |
coda docs search "roadmap" |
Search documents by query |
coda docs show DOC_ID |
Show document details |
Page Commands
| Command | Description |
|---|---|
coda pages list DOC_ID |
List all pages in document |
coda pages show DOC_ID PAGE_ID |
Show page details |
coda pages export DOC_ID PAGE_ID |
Export page as HTML (default) |
coda pages export DOC_ID PAGE_ID --format markdown |
Export page as Markdown |
coda pages export DOC_ID PAGE_ID -o page.md |
Save to file |
Table Commands
| Command | Description |
|---|---|
coda tables list DOC_ID |
List all tables in document |
coda columns list DOC_ID TABLE_ID |
Show table schema/columns |
coda rows list DOC_ID TABLE_ID |
List all rows in table |
coda rows list DOC_ID TABLE_ID --limit 10 |
Limit rows returned |
coda rows list DOC_ID TABLE_ID --query "filter" |
Filter rows |
coda rows show DOC_ID TABLE_ID ROW_ID |
Show specific row details |
Export Commands
| Command | Description |
|---|---|
coda export DOC_ID TABLE_ID |
Export table as JSON (console) |
coda export DOC_ID TABLE_ID --format csv |
Export as CSV |
coda export DOC_ID TABLE_ID -o data.json |
Save to file |
Authentication Commands
| Command | Description |
|---|---|
coda auth status |
Show current configuration |
coda auth test |
Test API connection |
Common Workflows
Find and Read a Document
# 1. Search for the document
coda docs search "product roadmap"
# 2. List pages in the document
coda pages list DOC_ID
# 3. Export page content as Markdown
coda pages export DOC_ID PAGE_ID --format markdown
Extract Table Data
# 1. List tables in document
coda tables list DOC_ID
# 2. View table schema
coda columns list DOC_ID TABLE_ID
# 3. Export table data
coda export DOC_ID TABLE_ID --format json -o data.json
Browse Table Rows
# List first 20 rows
coda rows list DOC_ID TABLE_ID --limit 20
# Filter rows
coda rows list DOC_ID TABLE_ID --query "status:active"
# Show specific row details
coda rows show DOC_ID TABLE_ID ROW_ID
Common Searches
| Task | Command |
|---|---|
| Find PRDs | coda docs search "PRD" |
| Find roadmaps | coda docs search "roadmap" |
| Find competitive analysis | coda docs search "competitive" |
| Find research docs | coda docs search "research" |
| Find Overleaf/Nova docs | coda docs search "overleaf" or "nova" |
| Find Reflect docs | coda docs search "reflect" |
Global Options
| Option | Description |
|---|---|
--format conversational |
Human-readable output (default) |
--format json |
Machine-readable JSON output |
--format csv |
CSV output |
--format table |
Tabular output |
--ai-snippets |
Show AI agent code snippets |
Tips
- Document IDs are in the URL:
coda.io/d/Doc-Name_d<DOC_ID> - Page IDs start with
canvas-(found viapages list) - Table IDs start with
grid-ortable-(found viatables list) - Row IDs are shown in
rows listoutput - Use
--format jsonfor machine-readable output - Export pages as Markdown for easy reading
Installation
If coda command is not found, install from source:
cd ~/aves/coda-cli && uv tool install .
Or run directly without global install:
cd ~/aves/coda-cli && uv run coda <command>
Error Handling
| Error | Solution |
|---|---|
command not found: coda |
Install: cd ~/aves/coda-cli && uv tool install . |
CODA_API_KEY not set |
Run export CODA_API_KEY="your-key" |
Invalid API key |
Get new key at https://coda.io/account |
Document not found |
Verify DOC_ID from URL or search results |
Table not found |
Run coda tables list DOC_ID for valid IDs |
Page not found |
Run coda pages list DOC_ID for valid IDs |
More from kjgarza/marketplace-claude
vscode-extension-builder
Comprehensive guide for creating VS Code extensions from scratch, including project scaffolding, API usage, activation events, and packaging. Use when user wants to create/build/generate/develop a VS Code extension or plugin, asks about VS Code extension development, needs help with VS Code Extension API, discusses extension architecture, wants to add commands/webviews/language support, or mentions scaffolding a VS Code project.
94detect-code-smells
Detect common code smells and anti-patterns providing feedback on quality issues a senior developer would catch during review. Use when user opens/views code files, asks for code review or quality assessment, mentions code quality/refactoring/improvements, when files contain code smell patterns, or during code review discussions.
10scientific-visualization
Create publication figures with matplotlib/seaborn/plotly. Multi-panel layouts, error bars, significance markers, colorblind-safe, export PDF/EPS/TIFF, for journal-ready scientific plots.
9searching-academic-outputs-with-dimensions
Search for academic literature, empirical evidence, and scholarly research using the Dimensions database. Use when seeking research papers to support product decisions, find empirical studies, conduct literature reviews, explore funding patterns, validate hypotheses with academic sources, or discover research trends. Supports publications, grants, patents, clinical trials, and researcher profiles. Triggers on requests for "academic evidence", "empirical research", "find studies", "literature search", or "research to support decisions".
8scholar-evaluation
Systematic framework for evaluating scholarly and research work based on the ScholarEval methodology. This skill should be used when assessing research papers, evaluating literature reviews, scoring research methodologies, analyzing scientific writing quality, or applying structured evaluation criteria to academic work. Provides comprehensive assessment across multiple dimensions including problem formulation, literature review, methodology, data collection, analysis, results interpretation, and scholarly writing quality.
8pptx
Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks
6