effect-io-ai

Package: @effect/ai-anthropic
Module: AnthropicTool

AnthropicTool.CodeExecutionTextEditorView

Input payload for the view command of Anthropic’s text editor code execution tool.

When to use

Use when working at the Anthropic protocol boundary and the code-execution view request must be distinguished from standalone text-editor view requests.

Details

The payload is discriminated by type: "text_editor_code_execution" and command: "view". The path field identifies the file to view.

Gotchas

This code execution view payload does not include view_range; line ranges are part of the standalone text editor view payload, not this code execution payload.

See

Signature

type CodeExecutionTextEditorView = typeof CodeExecutionTextEditorView.Type

Source

Since v4.0.0