inspect_files
Inspects specified files with AI to retrieve content relevant to needed information and keywords, helping agents target multiple paths without reading every line.
Instructions
Agent driven file inspection that uses AI to retrieve relevant content from multiple files.
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_paths": "<file_paths>",
"information_needed": "<information_needed>",
"include_lines": "<include_lines>",
"keywords": "<keywords>"
},
"name": "inspect_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Explain why this information is needed to help the AI agent give better results. The more context you provide, the better the results will be. | |
| keywords | Yes | Array of specific keywords related to the information needed. AI will target files that contain one of these keywords. | |
| file_paths | Yes | Paths to the files (or directories) to inspect | |
| include_lines | Yes | Whether to include the actual line content in the response, which uses more of your limited token quota, but gives more informatiom (default: false) | |
| information_needed | Yes | Full description of what information is needed from the files, including the context of the information needed. Do not be vague, be specific. The AI agent does not have access to your context, only this "information needed" and "reason" fields. That's all it will use to decide that a line is relevant to the information needed. So provide a detailed specific description, listing all the details about what you are looking for. |