Write File • AI Agent SDK
write_file: Write a file within a skill directory.
write_file
Method
</div>
This is a method of the SkillMutatorProtocol class in the protocols module.
Write a file within a skill directory.
Signature
def write_file(name: str, file_path: str, file_content: str, propose: bool) -> strParameters
ParamField
strSkill name
ParamField
strRelative path within skill directory
ParamField
strFile contents to write
ParamField
boolIf True, stage for approval; if False, write directly
Returns
ResponseField
strStatus message describing the action taken
Source
View on GitHubpraisonaiagents/skills/protocols.py at line 132