> ## Documentation Index
> Fetch the complete documentation index at: https://docs.macro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# text_editor_code_execution

> Generated from the Macro Rust tool registry.

# text\_editor\_code\_execution

Generated from the Macro Rust tool registry.

## Parameters

| Parameter   | Type   | Required | Description                                                 |
| ----------- | ------ | -------- | ----------------------------------------------------------- |
| `command`   | string | Yes      | The command to execute: "view", "create", or "str\_replace" |
| `file_text` | string | No       | File content for create operations                          |
| `new_str`   | string | No       | Replacement string for str\_replace operations              |
| `old_str`   | string | No       | String to find for str\_replace operations                  |
| `path`      | string | Yes      | Path to the file                                            |
