Directly using the operating system, I think, is a better approach. At the user level. There are many projects focusing on operating system control. There are many models. Why donโt you combine your search function with theirs? Why arenโt you implementing a user-level search? Take yourselves as an example
The current search engine packages for Python, like duckduckgo-search and googlesearch-python, hit rate limits very quickly. This API is free, and offers a lot more options. I whipped it together in a couple of hours, so there is still a lot of room for improvement.
Iโve written a custom web browser for PC, and AI augmented Chrome extensions as well, but giving data hungry API AI providers access to your file system is a major security risk. Might as well give every virus and malware access to your file system at that point.