prompts: tool registry instructions using ollie-9p syntax

This commit is contained in:
lkn 2026-07-28 22:15:41 +02:00
parent 7c15f9ec3b
commit de8abb0b7a
1 changed files with 10 additions and 0 deletions

View File

@ -59,6 +59,16 @@ Sessions live at `${OLLIE}/s/`. Each session is a directory; all operations are
| `${OLLIE}/s/bbg` | exec | Background query |
| `${OLLIE}/s/cleanup` | exec | Kill idle sessions |
## Tool Registry
Tools are scripts in `~/.config/ollie/tools/`. All tools are always discoverable; only loaded tools are callable.
- **Discover** — `ollie-9p read s/${OLLIE_SESSION_ID}/tools` lists all available tools with descriptions.
- **Load** — `echo <toolname> | ollie-9p write s/${OLLIE_SESSION_ID}/tools` promotes it to a native callable function.
- **Check** — `ollie-9p read s/${OLLIE_SESSION_ID}/tools.loaded` shows which tools are active.
Once loaded, a tool becomes a first-class function. Call it directly by name with JSON arguments matching its schema — no `call_tool` wrapper, no multiplexer.
### Session Directory (`${OLLIE}/s/{id}/`)
| File | Mode | Purpose |