review_with_context
Review code changes against project context by specifying diff target and optional context or focus files to generate a targeted code review.
Instructions
Review code changes against project context using GLM.
Args: diff_target: 'staged', 'unstaged', or a git ref like 'HEAD~1' context_files: Additional files or OpenSpec change folders to read focus_files: Specific files to focus the review on task_description: Optional task description for reviewer intent working_directory: Git repository root to review. Required unless the server was started with --workspace-dir include_trace: Include a compact diagnostic trace in the returned review
Returns: The generated code review.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "review_with_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff_target | No | staged | |
| focus_files | No | ||
| context_files | No | ||
| include_trace | No | ||
| task_description | No | ||
| working_directory | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |