Read the other side of a match
codequiry_get_match_counterpartReturn the code a match was found against, with the line ranges on both sides: the peer submission's file for a peer match, or the cached copy of the external page for a web match. match_id is the id of an entry in matches or web_files from view_submission. Pass legacy true when that entry is flagged is_legacy_web. AI matches have no counterpart.
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": {
"check_id": "<check_id>",
"submission_id": "<submission_id>",
"match_id": "<match_id>"
},
"name": "codequiry_get_match_counterpart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legacy | No | true when the entry is flagged is_legacy_web. | |
| check_id | Yes | The check id returned when the check was created. | |
| match_id | Yes | The id of an entry in matches or web_files from view_submission. | |
| submission_id | Yes | Submission id, from get_check, get_overview or view_submission. |