get_file_info
Retrieve file or directory details including metadata and permissions from specified paths within the MCP Server Framework's secure environment.
Instructions
Get information about a file or directory.
Requires MCP_ALLOWED_PATHS to be configured with permitted directories.
Args:
path: Path to get info about
Returns:
File information or error message
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "get_file_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |