LearnNewsExamplesServices
Frontmatter
id8928
titleFeat: Implement call_method tool for Neural Link
stateClosed
labels
enhancementai
assigneestobiu
createdAtJan 31, 2026, 5:47 PM
updatedAtJan 31, 2026, 5:54 PM
githubUrlhttps://github.com/neomjs/neo/issues/8928
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 31, 2026, 5:54 PM

Feat: Implement call_method tool for Neural Link

Closed v12.0.0 enhancementai
tobiu
tobiu commented on Jan 31, 2026, 5:47 PM

Implement a generic method invocation tool for the Neural Link, allowing agents to trigger behavior on instances (e.g., store.load(), form.validate()).

Requirements:

  1. New Tool: call_method (or call_instance_method) in InstanceService.
  2. Params:
    • id (string): The instance ID.
    • method (string): The method name (support dot-notation for nested methods e.g. series.push, similar to AmCharts addon).
    • args (array): Arguments to pass to the method.
  3. Security: Ensure args serialization is handled safely (similar to current property setting).

Value: Allows agents to drive the application beyond just state changes (Actions vs State).

tobiu added the enhancement label on Jan 31, 2026, 5:47 PM
tobiu added the ai label on Jan 31, 2026, 5:47 PM
tobiu assigned to @tobiu on Jan 31, 2026, 5:47 PM
tobiu referenced in commit 4a6ec01 - "feat: Implement call_method tool for Neural Link (#8928) on Jan 31, 2026, 5:53 PM
tobiu
tobiu Jan 31, 2026, 5:54 PM

Input from Gemini 3 Pro:

✦ I have implemented the call_method tool.

Changes:

  1. Client-Side (src/ai/client/InstanceService.mjs): Added callMethod which uses Neo.ns to resolve nested method paths (e.g. series.push) and executes them on the instance with provided arguments.
  2. Client Mapping (src/ai/Client.mjs): Mapped the call_method RPC command to InstanceService.
  3. Server-Side (ai/mcp/server/neural-link/services/InstanceService.mjs): Added the bridge method to forward requests to the client.
  4. Schema (openapi.yaml): Defined the /instance/method/call endpoint and CallMethodRequest schema.

Agents can now actively drive the application by invoking methods.

tobiu closed this issue on Jan 31, 2026, 5:54 PM