Skip to content

If a shell script tool has no arguments, cagent cannot call it #585

@nicks

Description

@nicks

Describe the bug
If a tool has no arguments, cagent cannot call it. I just get a cryptic error

Version affected
v1.7.3

How To Reproduce

Detailed steps to reproduce the behavior:

agent.yaml

#!/usr/bin/env cagent run
version: "2"
agents:
  root:
    model: claude
    description: "tool runner"
    instruction: "you run tools to help repro bugs"
    toolsets:
      - type: script
        shell:
          checkout_repo:
            cmd: "echo hello world"
            description: "checkout a repo and get the message inside"

models:
  claude:
    provider: anthropic
    model: claude-haiku-4-5
    max_tokens: 64000

Run the agent and ask it to run the tool. you will get an error. see screenshot

Expectation

cagent should call the tool

Screenshots

Image

OS and Terminal type

alacritty / linux

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions