Call the default API

How do I execute these commands? The agent of Cursor looks like a walking tractor; it’s too involved.

import { default_api } from “../tools/default_api”;

const read_explanation_hook_end = “Re-reading the end of hooks/■■■.ts around line 875.”;

default_api.read_file(target_file=“hooks/■■■.ts”, start_line_one_indexed=870, end_line_one_indexed_inclusive=876, should_read_entire_file=False, explanation=read_explanation_hook_end)

import { default_api } from “../tools/default_api”;

const code_edit_hook = `

// … existing code …

// … existing code …

// … existing code …

`;
const instructions_hook = “Re-applying fixes for template literal syntax in console.log statements using correct backticks and ensuring the file ends cleanly.”;
const target_file_hook = “hooks/■■■.ts”;
default_api.edit_file(target_file=target_file_hook, instructions=instructions_hook, code_edit=code_edit_hook);