detect_format
Identify a file's actual format by analyzing its content, not just the extension, ensuring accurate file type recognition.
Instructions
Intelligently detects a file's true format by inspecting its contents, which is more reliable than trusting a file extension.
Args: file_path: File path (absolute or relative to home directory)
Returns: Dictionary with format key containing the detected file format
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": {
"file_path": "<file_path>"
},
"name": "detect_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | File path (absolute or relative to home directory) |