Wiki source code of Tool Policies
Last modified by superadmin on 2026/10/14 18:44
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | Default policies for tool enablement per wiki and special tool categories. | ||
| 2 | |||
| 3 | When the ##enabledTools## list is empty (the default after installation), every non-write tool is enabled and every write tool is off: | ||
| 4 | |||
| 5 | |=Category |=Tools |=Enabled by default | ||
| 6 | |Help |##man## |Always (mandatory) | ||
| 7 | |Search & Navigation |##query_documents##, ##get_document##, ##get_tree##, ##get_history##, ##get_links##, ##get_attachment## |Yes | ||
| 8 | |Structured Data (read) |##query_objects##, ##get_schema## |Yes | ||
| 9 | |Authoring (write) |##edit_document##, ##write_document##, ##delete_document##, ##write_attachment##, ##delete_attachment## |No | ||
| 10 | |Structured Data (write) |##write_object##, ##delete_object##, ##write_schema## |No | ||
| 11 | |Reach-gated |##list_wikis## |Only when cross-wiki reach is enabled | ||
| 12 | |||
| 13 | == Mandatory tools == | ||
| 14 | |||
| 15 | ##man## is always registered regardless of the enabled tools list. It provides self-documentation and costs nothing. | ||
| 16 | |||
| 17 | == Write tools == | ||
| 18 | |||
| 19 | Tools where ##isWrite() == true## are off by default and must be enabled by an administrator per wiki. Eight tools are write tools, covering page content and deletion, attachments, structured objects and class definitions. See [[Enable Write Tools>>doc:documentation.extensions.admin.llm.mcp-server.enable-write-tools.WebHome]]. | ||
| 20 | |||
| 21 | == Reach-gated tools == | ||
| 22 | |||
| 23 | ##list_wikis## is registered only when the endpoint has cross-wiki reach. It is not shown in the admin tool checkbox tree: reach is its enable switch. | ||
| 24 | |||
| 25 | == Tool categories == | ||
| 26 | |||
| 27 | The category is the tool's own category value, and it drives the grouping of the ##man## catalog. | ||
| 28 | |||
| 29 | |=Category |=Tools | ||
| 30 | |Help |##man## | ||
| 31 | |Search & Navigation |##query_documents##, ##get_document##, ##get_tree##, ##get_history##, ##get_links##, ##get_attachment##, ##list_wikis## (reach-gated) | ||
| 32 | |Structured Data |##query_objects##, ##get_schema##, ##write_object##, ##delete_object##, ##write_schema## | ||
| 33 | |Authoring |##edit_document##, ##write_document##, ##delete_document##, ##write_attachment##, ##delete_attachment## | ||
| 34 | |||
| 35 | == Collection tools (index module) == | ||
| 36 | |||
| 37 | When the AI-LLM indexing module is installed, two additional tools are available: | ||
| 38 | |||
| 39 | |=Tool |=Category | ||
| 40 | |##search_collections## |Semantic Search | ||
| 41 | |##list_collections## |Semantic Search | ||
| 42 | |||
| 43 | These tools are governed by collection access rights, not the space filter. |