Tools
Tools let the LLM call host code. The provider-neutral primitives and their
guides live in @johannes.latzel/llm-chat-tool; this engine registers them
through service.tools().add(...).
Package site: llm-chat-tool. OpenAI provider: llm-chat-openai.
Tool package guides
- Defining a tool: parameters, aliases, nested schemas, multiple results
- Registration: build a host-owned tool index
- Tool hooks: before, after and error events
- Timed tools: bound a call with a timeout and abort signal
- Packages: group tools and contribute tutorial text
The engine runs the tool-call loop: see tool calling. The base package also has runnable examples for executing a tool, typed tools, tool packages, and timed tools.
Concrete tool packages
llm-chat-file: filesystem toolsllm-chat-workspace: workspace and path-access managementllm-chat-memory: memory with embeddings, links, and PageRank scoringllm-chat-shell: shell tool with a permission systemllm-chat-time: date/time, stopwatch, and timer toolsllm-chat-web: web search and fetch toolsllm-chat-skill: skill loading tools
The llm-chat-mcp package
exposes these tools over the Model Context Protocol.
Registration in this package
The engine owns the ToolSuite behind service.tools(). See
ChatService for the send loop and
registration
for the tool-side contract.