DeepSeek file and codebase analysis
deepseek_analyze_filesReads local files, directories, or globs and asks DeepSeek a question about them for codebase Q&A, cross-file review, config auditing, log analysis, or document summarisation.
Instructions
Read local files, directories or globs and ask DeepSeek a question about them. Directories are walked recursively, skipping node_modules, .git, build output and binaries. Use this for codebase questions, cross-file review, config auditing, log analysis or document summarisation. Reads are enabled by default with no path restriction; set DEEPSEEK_FS_ROOTS to confine it or DEEPSEEK_ALLOW_FS=0 to disable reads entirely.
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": {
"paths": "<paths>"
},
"name": "deepseek_analyze_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | No | Up to 16 stop sequences. A single string is also accepted. | |
| extra | No | Arbitrary extra request-body fields, merged last so they override everything else. The escape hatch for any API parameter this server does not model yet. | |
| model | No | Override the model id for this call. | |
| paths | Yes | Absolute or relative file paths, directories, or globs such as src/**/*.ts | |
| tools | No | Function-calling definitions, passed to the API verbatim. Each item is { type: 'function', function: { name, description, parameters } }. | |
| top_p | No | Nucleus sampling, 0-1. Ignored by deepseek-reasoner. | |
| stream | No | Stream from the API and return the assembled result. Useful for very long outputs that would otherwise hit an idle timeout. | |
| system | No | ||
| logprobs | No | Return log probabilities. deepseek-chat only. | |
| question | No | What you want to know about these files. | |
| json_mode | No | Shorthand for response_format { type: 'json_object' }. Your prompt must mention JSON and should show an example. | |
| list_only | No | Report which files would be sent, with sizes, and make no API call. Use this first on a large tree. | |
| max_depth | No | Directory recursion depth. Default 8. | |
| max_tokens | No | Maximum output tokens. Omit for the server-side maximum (8192 for deepseek-chat, 65536 for deepseek-reasoner). No client-side cap is applied. | |
| session_id | No | Conversation key. Prior turns under this id are prepended automatically and this turn is appended, giving true multi-turn memory across tool calls. | |
| timeout_ms | No | Per-call timeout override in milliseconds. | |
| temperature | No | 0.0-2.0. DeepSeek's own guidance: 0.0 for code and maths, 1.0 for general conversation and data analysis, 1.3 for creative writing. Ignored by deepseek-reasoner. | |
| tool_choice | No | 'auto', 'none', 'required', or { type: 'function', function: { name } }. | |
| raw_response | No | Return the complete unmodified API JSON instead of formatted text. | |
| top_logprobs | No | 0-20, requires logprobs. deepseek-chat only. | |
| use_reasoner | No | Route to deepseek-reasoner for deep multi-step analysis instead of deepseek-chat. | |
| include_usage | No | Append the token-usage and cache-hit footer. Default true. | |
| max_bytes_total | No | Total byte budget. 0 for unlimited. Default 8,000,000. | |
| presence_penalty | No | -2.0 to 2.0. Ignored by deepseek-reasoner. | |
| frequency_penalty | No | -2.0 to 2.0. Ignored by deepseek-reasoner. | |
| include_reasoning | No | Include the chain-of-thought block in the result. Default true for deepseek-reasoner. | |
| max_bytes_per_file | No | Per-file byte cap. 0 for unlimited. Default 2,000,000. |