Encountered an argument format issue while executing the shell command.

Open 💬 0 comments Opened Mar 8, 2026 by hairushi

What version of Codex CLI is running?

codex-cli 0.111.0

What subscription do you have?

When I need to execute a shell command, it reports that the tool I set up is unavailable, with the error: failed to parse function arguments: invalid type: string "["powershell", "-Command", "Get-Location"]", expected a sequence at line 1 column 62.

Which model were you using?

qwen-3.5

What platform is your computer?

Microsoft Windows NT 10.0.26220.0 x64

What terminal emulator and version are you using (if applicable)?

_No response_

What issue are you seeing?

unable to execute any shell commands. seems due to a parsing issue with the tool interface。

I instructed Codex to print out the specific issues encountered, and on one occasion it provided the following information:

failed to parse function arguments: invalid type: string "["ls", "-la"]", expected a sequence at line 1 column 31

What steps can reproduce the bug?

unable to execute any shell commands. seems due to a parsing issue with the tool interface。

I instructed Codex to print out the specific issues encountered, and on one occasion it provided the following information:

failed to parse function arguments: invalid type: string "["ls", "-la"]", expected a sequence at line 1 column 31

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗