Draft Kb Entry
draft_kb_entryWrites a new Markdown knowledge-base draft for human review after root-cause confirmation, without overwriting files or touching Jenkins.
Instructions
Write a NEW knowledge base draft (Markdown) to knowledge/drafts/ for human review. Call this at the end of a debugging session once the user confirmed the root cause. It never touches Jenkins and never overwrites a file. Drafts are not used for matching until a human reviews them and moves them into knowledge/ (then commit to Git).
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": {
"title": "<title>",
"root_cause": "<root_cause>",
"match": "<match>"
},
"name": "draft_kb_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | No | Job full name or Jenkins URL. Empty = not tied to a build. | |
| build | No | Build number or permalink: lastBuild, lastFailedBuild, lastSuccessfulBuild, lastCompletedBuild, lastUnsuccessfulBuild. Empty = build from the URL, else lastBuild. | |
| match | Yes | Python regexes (case-insensitive). Use specific phrases copied from the log, not generic words like 'ERROR'. | |
| stage | No | ||
| title | Yes | Short title: symptom -> cause | |
| status | No | open | solved | workaround | open |
| version | No | Product/application version of the build, if relevant | |
| category | No | ||
| instance | No | Jenkins instance name from list_instances. Empty = default instance. | |
| solution | No | How it was / is fixed. Empty if not known yet. | |
| symptoms | No | ||
| how_found | No | How the cause was identified (searches, comparisons) | |
| root_cause | Yes | The confirmed root cause | |
| consequences | No | Regexes of follow-up errors caused by this issue | |
| red_herrings | No | Regexes of errors that appeared but were NOT the cause (e.g. also present in green builds) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||