# Media and search

Search for content with MCP or REST. Stowpot's development build also includes workers for file scanning, text extraction, OCR, and video playback. Those capabilities require a build that includes the workers and a deployment that runs them.

## Find an item

Use MCP `list_items` with a `q` value to search titles, tags, and item content. REST clients can use `GET /v1/items?q=onboarding`. Fetch a result by ID with MCP `get_item` when you need the full content.

When text extraction and OCR are enabled, the same search can also match cleared filenames, file metadata, document text, or words recognized in images and scanned PDFs. Results identify the item that owns the matching file.

## Process uploaded files

Uploads start in quarantine. The scan worker checks them before clearing them for download and further processing. Extraction, OCR, and video work run as background jobs. Allow time for these jobs to finish before expecting new file text to appear in search.

## Play a video

The video worker uses FFmpeg to turn supported cleared uploads into HLS for private playback. It can produce multiple resolutions when the source supports them and keeps the original available separately. MCP `get_asset_video` returns the processing status and, when ready, the master playlist path. The playback client needs a bearer credential for the playlist and segment requests.

## Try it with an MCP client

Once the file has cleared scanning and OCR has finished, try “Search Stowpot for the phrase ‘equipment inspection’ and tell me which item owns the matching scan.”

See [REST and MCP](/docs/rest-and-mcp) for client and credential setup.
