vendor_connectors.cursor.tools
AI framework tools for Cursor Background Agent operations.
This module provides tools for Cursor operations that work with multiple AI agent frameworks.
Module Contents
Section titled “Module Contents”Classes
Section titled “Classes”LaunchAgentSchema | Pydantic schema for the cursor_launch_agent tool. |
|---|---|
GetAgentStatusSchema | Pydantic schema for the cursor_get_agent_status tool. |
Functions
Section titled “Functions”cursor_launch_agent | Launch a new Cursor coding agent. |
|---|---|
cursor_get_agent_status | Get the current status of a Cursor agent. |
get_langchain_tools | Get all Cursor tools as LangChain StructuredTools. |
get_crewai_tools | Get all Cursor tools as CrewAI tools. |
get_strands_tools | Get all Cursor tools as plain Python functions for AWS Strands. |
get_tools | Get Cursor tools for the specified or auto-detected framework. |
TOOL_DEFINITIONS |
|---|
class vendor_connectors.cursor.tools.LaunchAgentSchema
Section titled “class vendor_connectors.cursor.tools.LaunchAgentSchema”Bases: pydantic.BaseModel
Pydantic schema for the cursor_launch_agent tool.
prompt : str
Section titled “prompt : str”‘Field(…)’
repository : str
Section titled “repository : str”‘Field(…)’
‘Field(…)’
branch_name : str | None
Section titled “branch_name : str | None”‘Field(…)’
class vendor_connectors.cursor.tools.GetAgentStatusSchema
Section titled “class vendor_connectors.cursor.tools.GetAgentStatusSchema”Bases: pydantic.BaseModel
Pydantic schema for the cursor_get_agent_status tool.
agent_id : str
Section titled “agent_id : str”‘Field(…)’
vendor_connectors.cursor.tools.cursor_launch_agent(prompt: str, repository: str, ref: str | None = None, branch_name: str | None = None) → dict[str, Any]
Section titled “vendor_connectors.cursor.tools.cursor_launch_agent(prompt: str, repository: str, ref: str | None = None, branch_name: str | None = None) → dict[str, Any]”Launch a new Cursor coding agent.
Args: prompt: Task description. repository: Repository (owner/repo). ref: Optional git ref. branch_name: Optional branch name.
Returns: Dict with agent ID and state.
vendor_connectors.cursor.tools.cursor_get_agent_status(agent_id: str) → dict[str, Any]
Section titled “vendor_connectors.cursor.tools.cursor_get_agent_status(agent_id: str) → dict[str, Any]”Get the current status of a Cursor agent.
Args: agent_id: Agent identifier.
Returns: Dict with agent state and details.
vendor_connectors.cursor.tools.TOOL_DEFINITIONS
Section titled “vendor_connectors.cursor.tools.TOOL_DEFINITIONS”None
vendor_connectors.cursor.tools.get_langchain_tools() → list[Any]
Section titled “vendor_connectors.cursor.tools.get_langchain_tools() → list[Any]”Get all Cursor tools as LangChain StructuredTools.
vendor_connectors.cursor.tools.get_crewai_tools() → list[Any]
Section titled “vendor_connectors.cursor.tools.get_crewai_tools() → list[Any]”Get all Cursor tools as CrewAI tools.
vendor_connectors.cursor.tools.get_strands_tools() → list[Any]
Section titled “vendor_connectors.cursor.tools.get_strands_tools() → list[Any]”Get all Cursor tools as plain Python functions for AWS Strands.
vendor_connectors.cursor.tools.get_tools(framework: str = ‘auto’) → list[Any]
Section titled “vendor_connectors.cursor.tools.get_tools(framework: str = ‘auto’) → list[Any]”Get Cursor tools for the specified or auto-detected framework.