New Tool Radar

AI Agents & Automation

How to Add a Custom Skill Tool to an AnythingLLM Workspace Agent

Give an AnythingLLM workspace agent a custom skill tool so it can run a job the built-in agent tools do not cover.

Schematic diagram with three steps: Open the workspace agent, Add the skill tool, then Test the tool call.

An AnythingLLM workspace agent can use built-in tools and flows, but a team usually has one job no built-in tool does. A custom skill tool fills that gap: the agent calls it by name when the job comes up, and the skill defines what it does.

Before you start

You need an AnythingLLM workspace with an agent enabled. Write the skill job as one sentence with its input and output before you create it: if the job takes more than one sentence, it is two skills.

Create the skill tool and attach it to the workspace agent

Create the custom skill in the workspace with a clear name, a one-sentence description of what it does, and the steps it runs. Attach it to the workspace agent and save the workspace. The description is what the model reads when it decides to call the skill, so name the exact job.

Test with a question that needs the skill

Ask the agent a question that needs the custom skill and check the run log shows the skill call. Then ask a question that does not need it and check the skill is not called. If the agent never calls it, the description is too vague about when it applies.

Worked example: A lookup skill for a fictional docs desk

Maple Docs is a fictional documentation desk. Its agent has a custom skill that looks up a policy by number. The table shows two calls.

Question Skill called? Why
Where is policy 7? Yes Policy 7 is a lookup job
What is the capital of Norway? No A general fact, no skill needed

Expected result (UNTESTED): the policy question produces one skill call and a reply naming the policy, while the general question gets no skill call. We checked the AnythingLLM agent documentation summary, which describes workspace agents and their tools, but we did not create the skill on this machine.

Limits

A custom skill runs with the workspace permissions, so do not give it a job that reads files or data outside the workspace. Keep the skill to one job and test it after every change to its steps.

Sources

See all