Get build stage logs
build_stage_logsRetrieve the log for a specific pipeline stage using IDs from build_status; output is truncated to keep responses small.
Instructions
Get the log of one pipeline stage. Find pipelineId/stageId via build_status first. Log output is truncated to keep responses small.
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": {
"repo": "<repo>",
"sn": "<sn>",
"pipeline_id": "<pipeline_id>",
"stage_id": "<stage_id>"
},
"name": "build_stage_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sn | Yes | Build SN | |
| repo | Yes | Repository path, e.g. "owner/repo" or "group/subgroup/repo" | |
| stage_id | Yes | Stage ID from build_status | |
| max_chars | No | Max log characters to return (default 60000) | |
| pipeline_id | Yes | Pipeline ID from build_status |