Skip to main content
Search Files by Keyword.
Tool ID: affinity_v2_files_search_post

Run this action

Use the TypeScript SDK for a single call. Put ctx.tools.execute(...) inside a Play when the call should be durable, scheduled, or run across a CSV.

CLI

Example response

The SDK exposes this shape at result.toolResponse.raw. Values below are representative.
Use deepline tools get affinity_v2_files_search_post --json for the latest machine-readable contract.

Input reference

Search files by keyword. The scope of the search is controlled by the request body: - Provide fileIds to limit the search to specific files. - Provide companyId to limit the search to files associated with a specific company. - Omit both to search across your entire account. fileIds and companyId are mutually exclusive. Returns up to limit files ordered by relevance. Prompts with no strong matches may still return low-relevance results. Each result contains a matched file and a single representative excerpt (a matching passage from that file). Even if a file contains multiple matching passages, it appears exactly once in the response with one excerpt.

Output reference

Deepline cost

  • Pricing model: fixed (per call).
  • Estimated Deepline credits: 0 per pricing unit.
  • Provider-native pricing may still exist outside Deepline credit billing.