get_document_id_from_title
Find a document ID by searching for its exact or partial title. Returns best match if exact title is not found.
Instructions
Locates a document ID by searching for its title.
IMPORTANT: This tool first checks for exact title matches (case-insensitive). If none are found, it returns the best partial match instead. This is useful when you're not sure of the exact title but need to reference a document in other operations. Results are more accurate when you provide more of the actual title in your query.
Use this tool when you need to:
Find a document's ID when you only know its title
Get the document ID for use in other operations
Verify if a document with a specific title exists
Find the best matching document if exact title is unknown
Args: query: Title to search for (can be exact or partial) collection_id: Optional collection to limit the search to
Returns: Document ID if found, or best match information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| collection_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |