{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreidy2r23h2u5vkqnikhkzi73geiwcmyyz76c2unaxexyzmkrcwkfym",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mgmjy3xpyv52"
},
"path": "/t/empty-shell-commands-when-mixed-shell-tool-with-function-tools/1376053#post_1",
"publishedAt": "2026-03-09T07:57:55.000Z",
"site": "https://community.openai.com",
"textContent": "I’m using the Agents SDK with the **shell** tool together with other tools (e.g. apply_patch and function tools) in the same tools array. In that setup the model sends a **shell_call with empty commands** , and the SDK throws **ModelBehaviorError**.\n\nWhen I **remove** the other tools and keep **only the shell** tool, the model runs the shell tool correctly (with real commands) and no error is thrown.\n\nSo the issue appears when shell is mixed with other tools: we get a shell call with empty commands and ModelBehaviorError. With shell alone it works.",
"title": "Empty shell commands when mixed shell tool with function tools"
}