check_file_structure
Validates a proposed file path against project structure conventions before creating or moving files, confirming correct directory placement.
Instructions
Validates whether a proposed file path follows the project's file structure conventions. Call this BEFORE creating new files or moving existing files to ensure they are placed in the correct directory.
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": {
"filePath": "<filePath>",
"fileType": "<fileType>"
},
"name": "check_file_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | The proposed relative file path to validate (e.g. 'src/components/Button.tsx') | |
| fileType | Yes | The type of file being created (e.g. 'component', 'api-route', 'test', 'utility', 'hook', 'service', 'model') |