kb_add_project
Index a project folder for kb_search (cross-project pattern search) — ONLY a folder the user named. Reads .TcPOU/.TcDUT/.TcGVL/.TcIO beneath it into the knowledge database; nothing is indexed by default.
Instructions
Index a project folder for kb_search (cross-project pattern search) — ONLY a folder the user named. Reads
.TcPOU/.TcDUT/.TcGVL/.TcIO beneath it into the knowledge database; nothing is indexed by default. Refused: the
plugin's folders, the knowledge folder, a folder inside or around one already indexed (its units would be
there twice). The answer names the files that could not be read (parse_errors) and the files no PLC project
compiles (not_in_project). Refused in readonly mode; audited (N127).
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": {
"path": "<path>"
},
"name": "kb_add_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| label | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||