Skip to content

lb capture

Terminal window
lb capture [url] [options]

lb capture adds content to your knowledge graph. It accepts a URL to fetch and process, a local file to upload, a short inline note, or content piped from stdin.

Inputs are resolved in the following priority order. Only one source is used per invocation.

PrioritySourceHow to trigger
1File upload--file <path>
2URLPositional argument
3Inline note--note <text>
4Stdin pipePipe content to lb capture
OptionTypeDescription
--why <text>stringRequired. Why you are saving this. Used for ranking and recall.
--note <text>stringShort inline note. Used as content when no URL or file is provided.
--title <text>stringOverride the auto-detected title.
--type <type>stringContent type hint. See content types below.
--file <path>stringPath to a local file to upload. Max 25 MB.
--jsonflagOutput raw JSON.
--api-url <url>stringOverride the API base URL.
TypeDescription
articleWeb article or blog post (default for URLs)
tweetTwitter/X post
repoGitHub or similar code repository
pdfPDF document
audioAudio file
notePlain-text note (default for --note and stdin)
videoVideo content
imageImage file

When --type is omitted, the CLI infers the type from the URL domain or file extension.

InputLimit
File upload (--file)25 MB
Stdin pipe5 MB

Capture a URL:

Terminal window
lb capture https://example.com/article --why "reference for the auth redesign"

Capture a quick note:

Terminal window
lb capture --note "Check the Drizzle docs for batch insert syntax" --why "ongoing reference"

Pipe content from stdin:

Terminal window
curl -s https://example.com/raw.md | lb capture --why "downloaded spec"

Upload a local PDF:

Terminal window
lb capture --file ./report.pdf --why "Q4 analysis" --type pdf

Override the title and type:

Terminal window
lb capture https://github.com/org/repo --why "dependency audit" --type repo --title "Org Monorepo"

Output as JSON for scripting:

Terminal window
lb capture https://example.com --why "research" --json | jq '.id'