ctp-get-context
Generate context-rich prompts from codebase directories by applying filters and formatting options for comprehensive project analysis.
Instructions
Generates a comprehensive, context-rich prompt from an entire codebase directory, applying filters and formatting options.
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": {
"root_path": "<root_path>"
},
"name": "ctp-get-context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root_path | Yes | Root directory path of the project. | |
| include_patterns | No | Comma-separated glob patterns for files to include. | |
| exclude_patterns | No | Comma-separated glob patterns for files to exclude. | |
| respect_gitignore | No | Whether to respect .gitignore rules. | |
| compress | No | Use smart code compression to summarize files. | |
| output_format | No | Output format ('default', 'markdown', 'cxml'). | default |
| tree_depth | No | Maximum depth for the project structure tree. |