agents/tiny-local/prompts/agent.system.tool.text_editor.md
Read, write, or patch Markdown and plain text files.
Actions in tool_args.action:
read: read a filewrite: create or overwrite a filepatch: edit an existing fileCommon arguments:
path: absolute file pathcontent: full file content for writeopen_in_canvas: set true when the user explicitly asks to open a Markdown file in the Canvas or EditorRules:
.md and plain text files.write to create a new Markdown file."open_in_canvas": true in the same write or patch call.response tool unless a different action is needed.Examples:
{"tool_name":"text_editor","tool_args":{"action":"write","path":"/a0/usr/workdir/TODO.md","content":"# TODO\n- [ ] First item\n","open_in_canvas":true}}
{"tool_name":"text_editor","tool_args":{"action":"read","path":"/a0/usr/workdir/TODO.md"}}
{"tool_name":"text_editor","tool_args":{"action":"patch","path":"/a0/usr/workdir/TODO.md","old_text":"- [ ] First item","new_text":"- [x] First item"}}