You already know what you want to find. Now you can ask for it directly.
The new filefortress ai command translates natural language into structured search filters, then runs the same search engine you already trust.
- Faster first search with less flag memorization
- Interpreted filters you can inspect before execution
- A safer workflow with
--dry-runand--explain
Table of Contents
How the AI Command Works
Under the hood, the command does three steps:
- Builds a schema-aware prompt using your current remote context.
- Asks the configured AI provider to return structured JSON filters.
- Maps those filters into the normal FileFortress search command path.
# Natural language input
filefortress ai "find images smaller than 5kb"
# Interpreted filters (example)
mediaType = images
sizeMaxBytes = 5120
Real Examples That Work Well
Prompt quality matters. Good prompts include explicit filter intent (media type, size, date, remote name/type).
filefortress ai "find images"
filefortress ai "find images smaller than 5kb"
filefortress ai "find videos modified in last 30 days"
filefortress ai "find documents on onedrive larger than 10mb"
The Safe Workflow: Dry-Run First
Use this pattern when trying a new prompt:
# 1) Validate interpretation
filefortress ai "find images smaller than 5kb" --dry-run
# 2) Add explanation if needed
filefortress ai "find images smaller than 5kb" --dry-run --explain
# 3) Execute
filefortress ai "find images smaller than 5kb"
Dry-run mode gives you confidence before running a search at scale and helps you quickly refine prompt wording.
Current Limits and When to Use Other Commands
The AI command is optimized for file-search prompts. It is not a general account assistant.
- Use
aifor filter-oriented search intent. - Use
remotes listfor remote inventory and counts. - Use
tools configure foundryfor provider/model setup.
If you see provider 400 errors, verify the exact model ID for your endpoint. Generic names may not be valid on all OpenAI-compatible runtimes.
Where to Go Next
- AI Command Reference for syntax and option details.
- AI Query Patterns Guide for stronger prompts.
- AI Troubleshooting Guide for setup and provider issues.
Try Your First AI Search
Start with --dry-run --explain, verify interpretation, then execute with confidence.