Plain text · sha256 c5d31bd00109
The description, line by line
3 lines One line number, because there is no previous capture to number against.
1
Writes a file to the local filesystem, overwriting if one exists.
2
3
When to use: creating a new file, or fully replacing one you've already Read. Overwriting an existing file you haven't Read will fail. For partial changes, use Edit instead.
What it accepts
2 parameters The JSON parameter schema sent beside this description, 408 characters of it. Name, type, then whether the client marked it required.content
string
required
The content to write to the file
file_path
string
required
The absolute path to the file to write (must be absolute, not relative)
sha256 7369ad28cd66 · the schema as the client sent it:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"content": {
"description": "The content to write to the file",
"type": "string"
},
"file_path": {
"description": "The absolute path to the file to write (must be absolute, not relative)",
"type": "string"
}
},
"required": [
"file_path",
"content"
],
"type": "object"
}