# Call the default API

**URL:** <https://forum.cursor.com/t/call-the-default-api/80612>\
**Category:** Help\
**Created:** [April 17, 2025, 3:27pm UTC](https://forum.cursor.com/t/call-the-default-api/80612 "2025-04-17T15:27:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hligaty](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/hligaty/32/33514_2.png) [@hligaty](https://forum.cursor.com/u/hligaty)\
**Post date:** [April 17, 2025, 3:27pm UTC](https://forum.cursor.com/t/call-the-default-api/80612/1 "2025-04-17T15:27:20Z")

</div>

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);

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 18, 2026, 10:38am UTC](https://forum.cursor.com/t/call-the-default-api/80612/2 "2026-06-18T10:38:51Z")

</div>

Closed on June 18, 2026, 10:38am UTC


