delete_file#
Build typed tools from annotations and docstrings. See the guide.
Delete one regular file by relative or absolute path.
Parameters#
{
"additionalProperties": false,
"properties": {
"path": {
"minLength": 1,
"type": "string",
"description": "Absolute path or a path relative to the current working directory."
}
},
"required": [
"path"
],
"title": "ToolInput",
"type": "object"
}
Model-facing snippet#
delete_file(path="notes/obsolete.md")
Guidelines#
Delete a file only when the task explicitly requires its removal.
Inspect or confirm the exact path before deleting it.
This tool never deletes directories or recursively expands patterns.
- zett_agent.tools.coding.delete_file#
A tool is a name, an input schema, and an async callable.
- Parameters:
arguments (Mapping[str, Any])
- Return type:
Direct Python calls use await tool(arguments_mapping). The snippet
above describes model-facing invocation syntax, not the Python call signature.