tessl install tessl/npm-external-editor@3.1.0Edit a string with the users preferred text editor using $VISUAL or $ENVIRONMENT
Agent Success
Agent success rate when using this tile
79%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.05x
Baseline
Agent success rate without this tile
75%
Captures text from a user-invoked external editor, returning both the saved content and the editor's exit status without treating non-zero exits as fatal.
@generates
The returned exitStatus should mirror the editor process exit code; use null only when no code is available.
export interface EditorResult {
text: string;
exitStatus: number | null;
}
export interface EditorOptions {
initialText?: string;
}
export function runEditorSession(options?: EditorOptions): Promise<EditorResult>;Launches the user's preferred text editor and captures edited file contents.