[GH-ISSUE #3275] docs: no user guide for Custom Tools / Function Calling (webhook & script tools, built-in web_search) #1771

Closed
opened 2026-10-21 05:42:30 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @kolacheee on GitHub (Jul 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3275

Originally assigned to: @SpicyMarinara on GitHub.

A shipped, user-facing feature has no user documentation. Found in a docs-coverage sweep against v2.1.0 (each gap re-checked with fresh greps across docs/ and README.md to confirm coverage really is absent). Suggested home: new-doc docs/CUSTOM_TOOLS.md.

Feature: Custom Tools (tool calling): Static Result / Webhook / Script tools, parameter schema, and attaching them to agents

Why it needs docs (user impact):

Tool calling is a headline power-user/migration capability. The three execution types, the parameter schema, the requirement to set CUSTOM_TOOL_SCRIPT_ENABLED and (for local URLs) WEBHOOK_LOCAL_URLS_ENABLED, and above all the non-obvious 'attach via an agent's enabledTools so the model can call it' step are easy to get wrong and undocumented for users.

What the docs currently say (i.e. the gap):

grep -ri 'custom tool|webhook|tool calling' docs + README: CONFIGURATION.md line 250 documents only the env-var/admin-secret gating (CUSTOM_TOOL_SCRIPT_ENABLED, admin secret). ARCHITECTURE_MAP.md line 108 and FRONTEND.md lines 234/439/488 are developer/architecture references (hook/schema/route tables). integrations/home-assistant.md mentions the Custom Tools panel only in passing. README has zero hits. No user guide exists on what the three execution types do, the JSON parameter schema, how to write a webhook or script tool, script sandbox/timeout limits, or the load-bearing final step of enabling the tool on an agent (enabledTools) so the model can actually call it.

Evidence it shipped and is user-facing:

packages/client/src/components/agents/ToolEditor.tsx (714 lines) is a full authoring surface. EXEC_TYPES is live: Static Result ('Returns a fixed string'), Webhook ('Sends a POST request to an external URL'), Script ('Runs a JavaScript expression server-side'). It has per-parameter name/description/required schema, Webhook URL, Script Body, a 'Hidden Marinara context' toggle, and Export/Delete. Backed by packages/server/src/routes/custom-tools.routes.ts. Tools attach to agents via enabledTools (verified in AgentEditor.tsx lines 427/602-613 useCustomTools + enabledTools). CHANGELOG references it across releases (e.g. line 725 'Script custom tools now show their disabled state...', line 784 Home Assistant syncs custom tools). SCRIPT_TOOLS_DISABLED_MESSAGE in the editor tells users to set CUSTOM_TOOL_SCRIPT_ENABLED=true.

Confidence: high. This is a suggested new doc/section, not a bug - close if it's out of scope or already planned.

Originally created by @kolacheee on GitHub (Jul 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3275 Originally assigned to: @SpicyMarinara on GitHub. A shipped, user-facing feature has **no user documentation**. Found in a docs-coverage sweep against **v2.1.0** (each gap re-checked with fresh greps across `docs/` and `README.md` to confirm coverage really is absent). Suggested home: **new-doc `docs/CUSTOM_TOOLS.md`**. **Feature:** Custom Tools (tool calling): Static Result / Webhook / Script tools, parameter schema, and attaching them to agents **Why it needs docs (user impact):** Tool calling is a headline power-user/migration capability. The three execution types, the parameter schema, the requirement to set CUSTOM_TOOL_SCRIPT_ENABLED and (for local URLs) WEBHOOK_LOCAL_URLS_ENABLED, and above all the non-obvious 'attach via an agent's enabledTools so the model can call it' step are easy to get wrong and undocumented for users. **What the docs currently say (i.e. the gap):** grep -ri 'custom tool|webhook|tool calling' docs + README: CONFIGURATION.md line 250 documents only the env-var/admin-secret gating (CUSTOM_TOOL_SCRIPT_ENABLED, admin secret). ARCHITECTURE_MAP.md line 108 and FRONTEND.md lines 234/439/488 are developer/architecture references (hook/schema/route tables). integrations/home-assistant.md mentions the Custom Tools panel only in passing. README has zero hits. No user guide exists on what the three execution types do, the JSON parameter schema, how to write a webhook or script tool, script sandbox/timeout limits, or the load-bearing final step of enabling the tool on an agent (enabledTools) so the model can actually call it. **Evidence it shipped and is user-facing:** packages/client/src/components/agents/ToolEditor.tsx (714 lines) is a full authoring surface. EXEC_TYPES is live: Static Result ('Returns a fixed string'), Webhook ('Sends a POST request to an external URL'), Script ('Runs a JavaScript expression server-side'). It has per-parameter name/description/required schema, Webhook URL, Script Body, a 'Hidden Marinara context' toggle, and Export/Delete. Backed by packages/server/src/routes/custom-tools.routes.ts. Tools attach to agents via enabledTools (verified in AgentEditor.tsx lines 427/602-613 useCustomTools + enabledTools). CHANGELOG references it across releases (e.g. line 725 'Script custom tools now show their disabled state...', line 784 Home Assistant syncs custom tools). SCRIPT_TOOLS_DISABLED_MESSAGE in the editor tells users to set CUSTOM_TOOL_SCRIPT_ENABLED=true. _Confidence: high. This is a suggested new doc/section, not a bug - close if it's out of scope or already planned._
bsakaguchi 2026-10-21 05:42:30 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 5, 2026):

Addressed in #3289.

<!-- gh-comment-id:4887418929 --> @SpicyMarinara commented on GitHub (Jul 5, 2026): Addressed in #3289.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1771
No description provided.