Port of .NET PR #5475.
Python's FileSkillScript.run() only accepts args: dict[str, Any] | None. .NET now supports raw JSON arguments including string arrays, enabling CLI-style argv forwarding to subprocess scripts.
Changes needed
- Broaden
SkillScript.run() and FileSkillScript.run() args type to accept list[str] in addition to dict
- Update
SkillScriptRunner protocol to match
- Update the
run_skill_script tool schema to accept both object and array args
- Add tests for array-style arguments
Port of .NET PR #5475.
Python's
FileSkillScript.run()only acceptsargs: dict[str, Any] | None. .NET now supports raw JSON arguments including string arrays, enabling CLI-style argv forwarding to subprocess scripts.Changes needed
SkillScript.run()andFileSkillScript.run()args type to acceptlist[str]in addition todictSkillScriptRunnerprotocol to matchrun_skill_scripttool schema to accept both object and array args