From de8abb0b7a06fdb29f5fc21af43fe84e7ab0bbc8 Mon Sep 17 00:00:00 2001 From: lkn Date: Tue, 28 Jul 2026 22:15:41 +0200 Subject: [PATCH] prompts: tool registry instructions using ollie-9p syntax --- prompts/session_9p.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/prompts/session_9p.md b/prompts/session_9p.md index 44c3935..5f4b0e8 100644 --- a/prompts/session_9p.md +++ b/prompts/session_9p.md @@ -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 | 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 |