update_skill_file
Modify existing files within skill directories by replacing their entire content with new data, including Python scripts, configuration files, and documentation.
Instructions
Update the content of an existing file in a skill directory.
This tool allows you to:
Modify existing Python scripts or other files
Update configuration files or data files
Replace entire file contents
Edit documentation or metadata
Parameters:
skill_name: The name of the skill directory (e.g., 'my-skill')
file_path: Relative path to the file to update (e.g., 'scripts/process.py')
content: The new complete content to write to the file (replaces entire file)
Important:
This replaces the ENTIRE file content with what you provide
The file must already exist (use create_skill_file for new files)
File_path must be relative to the skill's root directory
Always provide the complete new content, not just changes
Returns: Success message with filename and character count.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | New file content | |
file_path | Yes | Relative path to the file within the skill directory | |
skill_name | Yes | Name of the skill |