Skip to main content

Module tool_binding

Module tool_binding 

Source
Expand description

Declarative tool-binding contracts from SPEC-0023.

This module is deliberately side-effect free: parsing resources and registering trusted factories does not load scripts, start processes, open a database, or resolve secrets.

Structsยง

BindingRestrictions
CoreFactory ๐Ÿ”’
HostToolAuthority
Host-issued authority. Resource declarations can only narrow these grants.
LoadedToolResource
ResolvedToolBinding
ResolvedToolResource
ScopedFileRead ๐Ÿ”’
ScopedRetrieval ๐Ÿ”’
ToolBindingRequest
Owned input to a trusted implementation factory.
ToolBindingResource
A versioned standalone tool resource.
ToolBindingSettings
ToolImplementationCatalog
ToolImplementationDescriptor
Immutable, side-effect-free metadata supplied by a trusted implementation.

Enumsยง

RestrictionKind
RetrievalOperation ๐Ÿ”’
ToolTrustClass

Constantsยง

CATALOG_CONTRACT_VERSION
MAX_OUTPUT_BYTES ๐Ÿ”’
RESOURCE_SCHEMA_VERSION ๐Ÿ”’

Traitsยง

ToolImplementationFactory
Trusted executable registration. Binding may initialize local resources but discovery and descriptor access remain side-effect free.

Functionsยง

bind_resources
binding_metadata ๐Ÿ”’
cli_resource_directories
compatibility_binding_metadata ๐Ÿ”’
compatibility_binding_metadata_versioned ๐Ÿ”’
core_catalog
core_metadata_catalog
Backwards-compatible name for callers that only inspect descriptors.
derive_public_schema ๐Ÿ”’
inspection_value
inspection_values
is_secret_reference ๐Ÿ”’
load_named_resource
load_resources
Load sorted layers and replace whole resources only when explicitly requested.
load_resources_selected ๐Ÿ”’
mcp_reference
normalize_resource_path ๐Ÿ”’
reserved_public_name ๐Ÿ”’
resolve_mcp_binding
resolve_resources
resolve_unprepared_mcp_binding ๐Ÿ”’
resource_directories
Choose tool resource paths using the same explicit-config isolation as agents.
sanitize_metadata ๐Ÿ”’
schema_properties ๐Ÿ”’
toml_table_to_json ๐Ÿ”’
valid_environment_name ๐Ÿ”’
validate_binding_arguments
Validate arguments against the strict, side-effect-free schema subset used by declarative binding descriptors.
validate_fixed ๐Ÿ”’
validate_identifier ๐Ÿ”’
validate_mcp_declaration ๐Ÿ”’
validate_object_schema ๐Ÿ”’
validate_schema_value ๐Ÿ”’
Validate the strict schema subset used by built-in descriptors. Factories remain responsible for semantic checks and any additional Draft 2020-12 keywords.