codesafe_bug_code
Retrieve source code lines for a specific bug by providing task ID, bug ID, and line range. Get the exact code context needed for security audit.
Instructions
Fetch a range of source lines (1-based, inclusive) for the file behind a bug.
The platform ignores the line range and returns the whole file, so we slice the requested [begin_line, end_line] window client-side with line numbers.
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": {
"task_id": "<task_id>",
"bug_id": "<bug_id>",
"begin_line": "<begin_line>",
"end_line": "<end_line>"
},
"name": "codesafe_bug_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bug_id | Yes | ||
| task_id | Yes | ||
| end_line | Yes | ||
| begin_line | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||