Execute terminal command and return results Args: command: Command line command to execute timeout: Command timeout in seconds, default is 30 seconds Returns: Output of the command execution
Get recent command execution history Args: count: Number of recent commands to return Returns: Formatted command history record
Get current working directory Returns: Path of current working directory
Change current working directory Args: path: Directory path to switch to Returns: Operation result information
List files and subdirectories in the specified directory Args: path: Directory path to list contents, default is current directory Returns: List of directory contents
Write content to a file Args: path: Path to the file content: Content to write (string or JSON object) mode: Write mode ('overwrite' or 'append') Returns: Operation result information
Read content from a file with optional row selection Args: path: Path to the file start_row: Starting row to read from (0-based, optional) end_row: Ending row to read to (0-based, inclusive, optional) as_json: If True, attempt to parse file content as JSON (optional) Returns: File content or selected lines, optionally parsed as JSON
Insert content at specific row(s) in a file Args: path: Path to the file content: Content to insert (string or JSON object) row: Row number to insert at (0-based, optional) rows: List of row numbers to insert at (0-based, optional) Returns: Operation result information
Delete content at specific row(s) from a file Args: path: Path to the file row: Row number to delete (0-based, optional) rows: List of row numbers to delete (0-based, optional) substring: If provided, only delete this substring within the specified row(s), not the entire row (optional) Returns: Operation result information
Update content at specific row(s) in a file Args: path: Path to the file content: New content to place at the specified row(s) row: Row number to update (0-based, optional) rows: List of row numbers to update (0-based, optional) substring: If provided, only replace this substring within the specified row(s), not the entire row Returns: Operation result information
No configuration needed. Connect to run tools.