Tools
Delete Tool
Retrieve Tool
Update Tool
List Tools
Create Tool
Upsert Tool
Search Tools
ModelsExpand Collapse
NpmRequirement { name, version }
name: string
Name of the npm package.
version?: string | null
Optional version of the package, following semantic versioning.
PipRequirement { name, version }
name: string
Name of the pip package.
version?: string | null
Optional version of the package, following semantic versioning.
Tool { id, args_json_schema, created_by_id, 15 more }
Representation of a tool, which is a function that can be called by the agent.
id: string
The human-friendly ID of the Tool
args_json_schema?: Record<string, unknown> | null
The args JSON schema of the function.
created_by_id?: string | null
The id of the user that made this Tool.
default_requires_approval?: boolean | null
Default value for whether or not executing this tool requires approval.
description?: string | null
The description of the tool.
enable_parallel_execution?: boolean | null
If set to True, then this tool will potentially be executed concurrently with other tools. Default False.
json_schema?: Record<string, unknown> | null
The JSON schema of the function.
last_updated_by_id?: string | null
The id of the user that made this Tool.
metadata_?: Record<string, unknown> | null
A dictionary of additional metadata for the tool.
name?: string | null
The name of the function.
Optional list of npm packages required by this tool.
name: string
Name of the npm package.
version?: string | null
Optional version of the package, following semantic versioning.
Optional list of pip packages required by this tool.
name: string
Name of the pip package.
version?: string | null
Optional version of the package, following semantic versioning.
project_id?: string | null
The project id of the tool.
return_char_limit?: number
The maximum number of characters in the response.
source_code?: string | null
The source code of the function.
source_type?: string | null
The type of the source code.
tags?: Array<string>
Metadata tags.
The type of the tool.
ToolCreate { source_code, args_json_schema, default_requires_approval, 8 more }
source_code: string
The source code of the function.
args_json_schema?: Record<string, unknown> | null
The args JSON schema of the function.
default_requires_approval?: boolean | null
Whether or not to require approval before executing this tool.
description?: string | null
The description of the tool.
enable_parallel_execution?: boolean | null
If set to True, then this tool will potentially be executed concurrently with other tools. Default False.
json_schema?: Record<string, unknown> | null
The JSON schema of the function (auto-generated from source_code if not provided)
Optional list of npm packages required by this tool.
name: string
Name of the npm package.
version?: string | null
Optional version of the package, following semantic versioning.
Optional list of pip packages required by this tool.
name: string
Name of the pip package.
version?: string | null
Optional version of the package, following semantic versioning.
return_char_limit?: number
The maximum number of characters in the response.
source_type?: string
The source type of the function.
tags?: Array<string> | null
Metadata tags.
ToolReturnMessage { id, date, status, 13 more }
A message representing the return value of a tool call (generated by Letta executing the requested tool).
Args: id (str): The ID of the message date (datetime): The date the message was created in ISO format name (Optional[str]): The name of the sender of the message tool_return (str): The return value of the tool (deprecated, use tool_returns) status (Literal["success", "error"]): The status of the tool call (deprecated, use tool_returns) tool_call_id (str): A unique identifier for the tool call that generated this message (deprecated, use tool_returns) stdout (Optional[List(str)]): Captured stdout (e.g. prints, logs) from the tool invocation (deprecated, use tool_returns) stderr (Optional[List(str)]): Captured stderr from the tool invocation (deprecated, use tool_returns) tool_returns (Optional[List[ToolReturn]]): List of tool returns for multi-tool support
Deprecatedstatus: "success" | "error"
message_type?: "tool_return_message"
The type of the message.
status: "success" | "error"
type?: "tool"
The message type to be created.
ToolSearchRequest { limit, query, search_mode, 2 more }
Request model for searching tools using semantic search.
limit?: number
Maximum number of results to return.
query?: string | null
Text query for semantic search.
search_mode?: "vector" | "fts" | "hybrid"
Search mode: vector, fts, or hybrid.
tags?: Array<string> | null
Filter by tags (match any).
tool_types?: Array<string> | null
Filter by tool types (e.g., 'custom', 'letta_core').
ToolSearchResult { combined_score, tool, embedded_text, 2 more }
Result from a tool search operation.
combined_score: number
Combined relevance score (RRF for hybrid mode).
The matched tool.
id: string
The human-friendly ID of the Tool
args_json_schema?: Record<string, unknown> | null
The args JSON schema of the function.
created_by_id?: string | null
The id of the user that made this Tool.
default_requires_approval?: boolean | null
Default value for whether or not executing this tool requires approval.
description?: string | null
The description of the tool.
enable_parallel_execution?: boolean | null
If set to True, then this tool will potentially be executed concurrently with other tools. Default False.
json_schema?: Record<string, unknown> | null
The JSON schema of the function.
last_updated_by_id?: string | null
The id of the user that made this Tool.
metadata_?: Record<string, unknown> | null
A dictionary of additional metadata for the tool.
name?: string | null
The name of the function.
Optional list of npm packages required by this tool.
name: string
Name of the npm package.
version?: string | null
Optional version of the package, following semantic versioning.
Optional list of pip packages required by this tool.
name: string
Name of the pip package.
version?: string | null
Optional version of the package, following semantic versioning.
project_id?: string | null
The project id of the tool.
return_char_limit?: number
The maximum number of characters in the response.
source_code?: string | null
The source code of the function.
source_type?: string | null
The type of the source code.
tags?: Array<string>
Metadata tags.
The type of the tool.
embedded_text?: string | null
The embedded text content used for matching.
fts_rank?: number | null
Full-text search rank position.
vector_rank?: number | null
Vector search rank position.