Search for content using Tavily and scrape the most relevant result. This function performs a two-step process: 1. Uses Tavily search API to find the most relevant URLs for a given query 2....
List contents of a directory. This tool lists all files and directories in the specified path. If no path is provided, it lists the current directory....
Get the current working directory. Returns: str: The absolute path of the current working directory. Example: >>> current_dir = get_current_directory() >>> print(current_dir)
Change the current working directory. Args: path (str): The directory path to change to. Returns: str: The new current working directory path. Raises: Exception: If the directory doesn't exist or is not accessible. Example: >>> new_dir = change_directory("/path/to/directory") >>> print(new_dir)
Get detailed information about a file or directory. Args: path (str): The path to the file or directory. Can be obtained from list_all_files()["files"][i]["path"]. Returns: dict: A dictionary containing: - exists: Whether the path exists - type: "file" or "directory" - size: Size in bytes (for files) - created: Creation timestamp - modified: Last modification timestamp - accessed: Last access timestamp - absolute_path: Full absolute path Example: >>> # Get all files first >>> all_files = list_all_files() >>> # Get info for first file >>> info = file_info(all_files["files"][0]["path"]) >>> print(info)
Create a new directory. Args: path (str): The path where the directory should be created. Returns: dict: A dictionary containing: - success: Boolean indicating if creation was successful - path: The created directory path - error: Error message if creation failed Example: >>> result = create_directory("/path/to/new/directory") >>> print(result)
Scrape content from a given URL and return it in markdown format. This tool uses Firecrawl to extract content from a webpage and convert it to markdown format. It's designed to handle various types of web content and convert them into a consistent markdown representation....
Read and display the contents of a file with proper formatting. This tool reads a file and returns its contents with metadata. For text files, it can optionally return specific line ranges....
Preview the beginning of a file. This tool reads and displays the first few lines of a file, useful for quick file content inspection. Args: file_path (str): The path to the file to preview....
Recursively list all files in a directory and its subdirectories. This tool walks through all directories and subdirectories to find all files, with options to exclude specific directories and file types. Args: path (str, optional): The root directory to start from....
Find all files of a specific type in a directory and its subdirectories. Args: path (str, optional): The root directory to start from. Defaults to current directory ("....
API key for Mistral AI
API key for Firecrawl service
API key for Tavily search service