Toolkdeps asset
kdeps-tools-write_file
v1.0.0Write or overwrite a text file on the local filesystem. Creates a new file if it does not exist; overwrites existing files entirely. Use for creating or updating configuration files, source code, scripts, or any text-based file. Requires an absolute path.
Install
A kdeps asset: kdeps installs it on first run and updates it without a new release.
kdeps update tools/write_file
Pin a version with kdeps update tools/write_file@<version>.
Contents
Write or overwrite a text file on the local filesystem. Creates a new file if it does not exist; overwrites existing files entirely. Use for creating or updating configuration files, source code, scripts, or any text-based file. Requires an absolute path.
- category
- file
- constraints
- overwrites entire file — use edit_file for targeted changes; must use absolute path
- outputFormat
- confirmation message with bytes written
- seeAlso
- edit_file, read_file
| Parameter | Type | Description |
|---|---|---|
| content * | string | Text content to write to the file |
| file_path * | string | Absolute path to the file to write |
version: 1.0.0
category: file
description: Write or overwrite a text file on the local filesystem. Creates a new file if it does not exist; overwrites existing files entirely. Use for creating or updating configuration files, source code, scripts, or any text-based file. Requires an absolute path.
constraints: overwrites entire file — use edit_file for targeted changes; must use absolute path
outputFormat: confirmation message with bytes written
seeAlso: edit_file, read_file
parameters:
content:
type: string
description: Text content to write to the file
required: true
file_path:
type: string
description: Absolute path to the file to write
required: true
Versions
| Version | Published | Status |
|---|---|---|
| 1.0.0 | 10/11/2026 | active |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.0.0
- Published
- 10/11/2026
Tags
kdepstool