Spaces:
Running
Running
|
Download agents/tiny-local/prompts/agent.system.tool.text_editor.md from Leon4gr45/openoperator: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/agents/tiny-local/prompts/agent.system.tool.text_editor.md
- Command line
-
hf download hf://spaces/Leon4gr45/openoperator/agents/tiny-local/prompts/agent.system.tool.text_editor.md
-
curl -L -o agent.system.tool.text_editor.md https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/agents/tiny-local/prompts/agent.system.tool.text_editor.md
1.18 kB
text_editor
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 file
Common arguments:
path: absolute file pathcontent: full file content forwriteopen_in_canvas: settruewhen the user explicitly asks to open a Markdown file in the Canvas or Editor
Rules:
- Use this tool for
.mdand plain text files. - Use
writeto create a new Markdown file. - If the user asks to open the file in the Canvas or Editor, include
"open_in_canvas": truein the samewriteorpatchcall. - After a successful write or patch result, do not repeat the same tool call. Use the
responsetool 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"}}