get_file_info
Retrieve and format metadata for files or directories by providing the path and desired output format. Supports text or JSON outputs for efficient information extraction.
Instructions
Retrieve detailed metadata about a file or directory.
Args:
path: Path to the file or directory
format: Output format ('text' or 'json')
ctx: MCP context
Returns:
Formatted file information
Input Schema
Name | Required | Description | Default |
---|---|---|---|
format | No | text | |
path | Yes |
Input Schema (JSON Schema)
{
"properties": {
"format": {
"default": "text",
"title": "Format",
"type": "string"
},
"path": {
"title": "Path",
"type": "string"
}
},
"required": [
"path"
],
"title": "get_file_infoArguments",
"type": "object"
}