Ask Kee doesn't read the whole Wiki at once. To answer a question, the model asks for what it needs through tools, one at a time: search for pages, read a page, list a space's pages. Each tool runs as the person who asked, with the same access checks as the Wiki's own screens, so Kee can never read more than that person could.
1. How the tools work
- Every tool in this release only reads. None creates, changes or deletes anything.
- Each tool returns at most what the person could see in the browser: a restricted or locked page they are not on doesn't exist for the tool.
- Nothing of a space whose admins turned Kee off is ever returned, whoever asks.
- A page's id is its space key and number, such as OPS/42; answers link to /spaces/{key}/pages/{id}.
- A long page comes back as its outline and first section, with a note; the model can then ask for the sections it needs. Images, files, mentions, macros and HTML blocks are described by their captions or titles, never sent as content.
- The answer's sources are only pages a tool returned while answering that question.
2. The tools
The first group is loaded for every question. The rest are found by the model when it needs them, through find_tools and call_tool, which apply the same checks.
| Tool | What it does | Needs |
|---|---|---|
| search_pages | Finds pages by words in their title (whole words, all of them), in one space or all the spaces the person can read | Read the space |
| get_page | Reads a page: its title, where it is, labels, when it changed and its text (or its outline and first section when long) | Read the space |
| get_page_tree | Lists a space's pages as a tree, or the pages under one page | Read the space |
| list_spaces | Lists the spaces the person can read | Read the space |
| get_space | Describes a space: name, description, labels and its main pages | Read the space |
| list_comments | Reads the comments on a page | Read the space |
| list_labels | Lists labels, or the pages carrying one | Read the space |
| find_tools | Finds a tool that isn't loaded, by what it does | Use Kee |
| call_tool | Runs a tool found with find_tools | Use Kee |
| list_page_versions | Lists a page's published versions | Read the space |
| get_page_version | Reads one earlier version of a page | Read the space |
| list_templates | Lists the templates a space offers | Edit pages in the space |
| get_template | Reads one template | Edit pages in the space |
3. Not in this release
- Searching the words inside pages: search_pages matches titles only.
- Blog posts, Q&A, attachments, page locks, plans, reactions and who watches a page.
- Tools that change anything. Kee answers and points to the editor; it doesn't edit pages.
What the tools send to the model provider is described in Kee data handling.