MiMo-Code icon indicating copy to clipboard operation
MiMo-Code copied to clipboard

actor tool JSON format error: operation parameter passed as string instead of object

Open danielwang20150225-source opened this issue 5 months ago • 1 comments

Description

When using the actor tool to spawn a general subagent, the tool call fails with a JSON format error. The operation parameter is being passed as a string instead of an object, causing the subagent spawn to fail.

Error message from session checkpoint:

general subagent 调用失败:actor 工具的 operation 参数应为 object 类型,被错误传递为 string。需要修正 JSON 格式。

Steps to reproduce

  1. Start a conversation about designing an app (Principles App based on Ray Dalio's methodology)
  2. After completing Phase 1 requirements, attempt to spawn a general subagent for Phase 2 architecture design
  3. Call the actor tool with the following JSON structure:
    {
      "operation": {
        "action": "run",
        "subagent_type": "general",
        "description": "Design architecture",
        "prompt": "Design the architecture for..."
      }
    }
    
  4. The tool call fails because the operation parameter is incorrectly formatted

Expected behavior

The actor tool should accept the operation parameter as an object type and successfully spawn the subagent.

Actual behavior

The actor tool receives the operation parameter as a string, causing a JSON format validation error and failing to spawn the subagent.

Environment

  • MiMO Code version: v0.1.0
  • Operating System: Windows 11 Home China
  • Node.js: v22.14.0
  • npm: 11.5.1
  • Shell: PowerShell

Additional context

This issue occurred during a multi-phase project planning session where the agent needed to delegate architecture design to a general subagent. The failure blocked progress on the task.

Session ID: ses_14b87a241ffeNmT5TxxflIE6Yf Task: Complete Principles App architecture design (tech stack, data model, page flow, implementation plan)

Tool parameter passed as string instead of object is a schema mismatch — exactly what AgentAutopsy's Schema Drift Detector catches. It records the expected parameter types and flags when the actual call diverges.

github.com/Abhisekhpatel/AgentAutopsy pip install agentautopsy

Abhisekhpatel avatar Jun 13 '26 18:06 Abhisekhpatel