CU

Cursor — Agent Tools v1.0 (JSON Schema)

Tool Schema ✦ Curated & attributed Intermediate

A JSON array of function/tool definitions for the Cursor agent, each with a description and JSON-Schema parameters. Defines codebase_search (semantic), read_file, run_terminal_cmd, list_dir, grep_search (ripgrep), edit_file, search_replace, file_search (fuzzy), delete_file, reapply, web_search, create_diagram (Mermaid), and edit_notebook for Jupyter cells.

What makes this prompt notable

  • search_replace enforces uniqueness by requiring 3-5 lines of context before and after each change point
  • edit_file instructs the model to mark unchanged regions with '// ... existing code ...' so a cheaper apply model won't delete code
  • grep_search description embeds a literal-to-regex escaping table and caps results at 50 matches
  • reapply is a dedicated escape hatch that calls a smarter model when the apply model misinterprets an edit
  • edit_notebook mandates a strict argument order and 0-based cell indices, with explicit new-cell vs edit-cell flagging

Discussion (0)

Sign in to join the discussion.
Related

More in Tool & Function Schemas

AU
Augment Code
tool schema

Augment Code — Tool Schemas (Claude Sonnet 4)

JSON tool-definition file for the Augment Agent (Claude Sonnet 4 variant) defining ~22 tools: file editing (str-replace-editor with line-numbered mult…

tool schema definition constraint setting in descriptions enum constraints
229 5.4k 2.3k words
LE
Leap.new
tool schema

Leap.new — Tool Schema Definitions (JSON)

JSON tool/function schema file defining ten code-generation tools for the Leap.new app builder, including create_artifact, define_backend_service, cre…

JSON Schema tool definitions enum constraints nested object schemas
228 6.5k 1.4k words
TR
Traycer AI
tool schema

Traycer AI — Plan Mode Tool Schemas

Tool schemas for Traycer's Plan mode, layering exploration tools (list_dir, file_search, grep_search, read_file, LSP navigation, get_diagnostics) with…

tool-use protocol structured JSON schema multi-agent orchestration
216 5k 1.4k words