search_by_extension
Find files by type category (code, docs, media, config, data) or custom extensions. Specify optional path and pattern to refine results.
Instructions
Search for files by type category (code, docs, media, config, data) or custom extensions. Fast way to find all files of a certain type.
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": {
"type": "<type>"
},
"name": "search_by_extension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional: Restrict search to this directory path | |
| type | Yes | File type: "code", "docs", "media", "config", "data", or "custom" | |
| pattern | No | Optional: Additional pattern to filter filenames | |
| maxResults | No | Maximum number of results to return (default: 50) | |
| customExtensions | No | Custom file extensions when type is "custom" (e.g., ["log", "tmp"]) |