Expand description
Shared tool definitions and Responses API tool primitives that can live
outside codex-core.
Structs§
- Conversation
History - Raw response history snapshot available when an extension tool is invoked.
- Discoverable
Plugin Info - Extension
Turn Item - Visible turn items that an extension may publish into the host lifecycle.
- Freeform
Tool - Freeform
Tool Format - Json
Schema - Generic JSON-Schema subset needed for our tool definitions.
- Json
Tool Output - List
Available Plugins ToInstall Result - Noop
Turn Item Emitter - Turn-item emitter used when a caller does not expose visible item emission.
- Request
Plugin Install Args - Request
Plugin Install Entry - Request
Plugin Install Meta - Request
Plugin Install Result - Responses
ApiNamespace - Responses
ApiTool - Responses
ApiWeb Search Filters - Responses
ApiWeb Search User Location - Tool
Call - Tool
Definition - Tool metadata and schemas that downstream crates can adapt into higher-level tool specs.
- Tool
Environment - Host-owned turn environment summary visible to extension tools.
- Tool
Name - Identifies a callable tool, preserving the namespace split when the model provides one.
- Tool
Search Entry - Tool
Search Info - Tool
Search Source Info - ZshFork
Config
Enums§
- Additional
Properties - Whether additional properties are allowed, and if so, any required schema.
- Discoverable
Tool - Discoverable
Tool Action - Discoverable
Tool Type - Function
Call Error - Error returned while executing a model-visible tool invocation.
- Json
Schema Primitive Type - Primitive JSON Schema type names we support in tool definitions.
- Json
Schema Type - JSON Schema
typesupports either a single type name or a union of names. - Loadable
Tool Spec - Responses
ApiNamespace Tool - Shell
Command Backend Config - Tool
Environment Mode - Tool
Exposure - Controls where a tool is exposed to the model.
- Tool
Payload - Canonical payload shapes accepted by model-visible tool runtimes.
- Tool
Spec - When serialized as JSON, this produces a valid “Tool” in the OpenAI Responses API.
- Tool
User Shell Type - Unified
Exec Feature Mode - Unified
Exec Shell Mode
Constants§
- LIST_
AVAILABLE_ PLUGINS_ TO_ INSTALL_ TOOL_ NAME - REQUEST_
PLUGIN_ INSTALL_ APPROVAL_ KIND_ VALUE - REQUEST_
PLUGIN_ INSTALL_ PERSIST_ ALWAYS_ VALUE - REQUEST_
PLUGIN_ INSTALL_ PERSIST_ KEY - REQUEST_
PLUGIN_ INSTALL_ TOOL_ NAME - TOOL_
SEARCH_ DEFAULT_ LIMIT - TOOL_
SEARCH_ TOOL_ NAME
Traits§
- Tool
Executor - Shared runtime contract for model-visible tools.
- Tool
Output - Model-facing output contract returned by executable tool runtimes.
- Turn
Item Emitter - Host-provided capability for extension tools to emit visible turn items.
Functions§
- all_
requested_ connectors_ picked_ up - augment_
tool_ spec_ for_ code_ mode - Augment tool descriptions with code-mode-specific exec samples.
- build_
request_ plugin_ install_ elicitation_ request - can_
request_ original_ image_ detail - coalesce_
loadable_ tool_ specs - code_
mode_ name_ for_ tool_ name - collect_
code_ mode_ exec_ prompt_ tool_ definitions - collect_
code_ mode_ tool_ definitions - collect_
request_ plugin_ install_ entries - create_
tools_ json_ for_ responses_ api - Returns JSON values that are compatible with Function Calling in the Responses API: https://platform.openai.com/docs/guides/function-calling?api-mode=responses
- default_
namespace_ description - dynamic_
tool_ to_ responses_ api_ tool - filter_
request_ plugin_ install_ discoverable_ tools_ for_ client - mcp_
call_ tool_ result_ output_ schema - mcp_
tool_ to_ deferred_ responses_ api_ tool - mcp_
tool_ to_ responses_ api_ tool - normalize_
output_ image_ detail - parse_
dynamic_ tool - parse_
mcp_ tool - parse_
tool_ input_ schema - Parse the tool
input_schemaor return an error for invalid schema. - parse_
tool_ input_ schema_ without_ compaction - Parse a trusted tool
input_schemawithout running large-schema compaction. - request_
user_ input_ available_ modes - retain_
tail_ from_ last_ n_ user_ messages - Retains items from the earliest of the last
user_message_countuser messages through the latest user message. - sanitize_
original_ image_ detail - shell_
command_ backend_ for_ features - shell_
type_ for_ model_ and_ features - tool_
definition_ to_ responses_ api_ tool - tool_
spec_ to_ code_ mode_ tool_ definition - Convert a supported nested tool spec into the code-mode runtime shape, including the code-mode-specific description sample.
- truncate_
assistant_ output_ text_ to_ token_ budget - Truncates assistant output text to a shared token budget across items.
- unified_
exec_ feature_ mode_ for_ features - Returns the unified-exec mode requested by feature policy, before runtime session inputs such as platform, user shell, and zsh-fork binary paths are resolved.
- verified_
connector_ install_ completed
Type Aliases§
- Tool
Executor Future - The boxed future returned by
ToolExecutor::handle. - Turn
Item Emission Future - Future returned when an extension tool emits a visible turn-item lifecycle event.