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.
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 |