add-tool
Skill36 starsChanged 7 months agoMITView on GitHub
Add a new function calling tool (vault operation) for the Gemini chat. Use when adding new tools like read_note, create_note, etc.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- ooloth/dotfilestheir own version, first seen Oct 5, 2026
- alunduil/alunduil-chezmoitheir own version, first seen Oct 4, 2026
- Dipeshpal/capestheir own version, first seen Sep 27, 2026
- hhopke/intervals-icu-mcptheir own version, first seen Sep 2, 2026
- thecoderpanda/fde-starter-kittheir own version, first seen Sep 2, 2026
- PinMeTo/pinmeto-location-mcptheir own version, first seen Jul 29, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- hhopke/intervals-icu-mcp★ 87same name
- ooloth/dotfiles★ 24same name
- Cognigy/cognigy-plugin★ 16same name
- PinMeTo/pinmeto-location-mcp★ 15same name
- microsoft/PilotSwarm★ 4same name
- agenticstack-sh/agenticstack-skills★ 2same name
- alunduil/alunduil-chezmoi★ 2same name
- thecoderpanda/fde-starter-kit★ 2same name
- Dipeshpal/capes★ 1same name
- ficaviolaodorata520/met-museum-mcp-server★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-workflow-nodeSkill
- gemini-best-practicesSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 4 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Add a new function calling tool called $ARGUMENTS to the Gemini chat integration.
- Very specific: line 16
Add ToolDefinition to the appropriate tools array (read/write/delete)
- Very specific: line 19
Add to getEnabledTools() logic if it needs conditional enabling
- Very specific: line 22
Add case in executeToolCall() switch for the new tool name
- Distinctive: line 26
Add the underlying vault operation method if it doesn't exist yet
- Very specific: line 27
Use app.vault for file operations, app.workspace for UI operations
- Distinctive: line 30
Update the system prompt to mention the new tool's capabilities
- Very specific: line 35
Safe editing: Use propose_edit pattern (apply changes, backup original, user confirms)
- Distinctive: line 36
Read-only tools: Always enabled; add to read tools array
- Very specific: line 39
Naming: Use snake_case (e.g., read_note, create_folder)
- Distinctive: line 46
Verify the tool appears in enabled tools based on its category
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Add New Function Calling Tool
Add a new function calling tool called $ARGUMENTS to the Gemini chat integration.
Required File Changes
1. src/core/tools.ts
- Add
ToolDefinitionto the appropriate tools array (read/write/delete) - Define
name,description, andparametersschema - Property types:
STRING,BOOLEAN,INTEGER,ARRAY,OBJECT - Add to
getEnabledTools()logic if it needs conditional enabling
2. src/vault/toolExecutor.ts
- Add
caseinexecuteToolCall()switch for the new tool name - Implement the execution logic (typically calling methods from
notes.tsorsearch.ts)
3. src/vault/notes.ts or src/vault/search.ts (if needed)
- Add the underlying vault operation method if it doesn't exist yet
- Use
app.vaultfor file operations,app.workspacefor UI operations
4. System prompt in src/ui/components/Chat.tsx
- Update the system prompt to mention the new tool's capabilities
- This helps the model know when to use the tool
Tool Design Guidelines
- Safe editing: Use
propose_editpattern (apply changes, backup original, user confirms) - Read-only tools: Always enabled; add to read tools array
- Write tools: Gated by
allowWriteoption - Delete tools: Gated by
allowDeleteoption (opt-in) - Naming: Use
snake_case(e.g.,read_note,create_folder) - Results: Return structured objects; large results will be truncated to 500 chars in tracing
Verification
- Run
npm run lint - Run
npm run build - Verify the tool appears in enabled tools based on its category
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

