getDiagnosticsForFile
Retrieve diagnostic information (errors, warnings, hints) for a specific file using its full workspace URI in Trae IDE. Ensure accurate file identification for AI-driven code analysis and suggestions.
Instructions
获取指定文件的诊断信息。⚠️ 注意:需要使用完整的workspace URI格式,如 "file:///workspace/src/index.ts"。如果不确定URI格式,建议使用 getDiagnosticsForPath 工具。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
fileUri | Yes | 完整的文件URI,必须使用 file:///workspace/ 开头的格式。示例:file:///workspace/src/index.ts |
Input Schema (JSON Schema)
{
"additionalProperties": false,
"properties": {
"fileUri": {
"description": "完整的文件URI,必须使用 file:///workspace/ 开头的格式。示例:file:///workspace/src/index.ts",
"type": "string"
}
},
"required": [
"fileUri"
],
"type": "object"
}