Skip to content

Python: Support string[] arguments for file-based skill scripts #5714

@SergeyMenshykh

Description

@SergeyMenshykh

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

Metadata

Metadata

Type

No type

Projects

Status

Planned

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions