Skip to content

ApiGatewayToolFilter

Structure Class

ApiGatewayToolFilter dataclass

Bases: _SerdeShape

Specifies which operations from an API Gateway REST API are exposed as tools. Tool names and descriptions are derived from the operationId and description fields in the API's exported OpenAPI specification.

Attributes

filter_path instance-attribute
filter_path: str

Resource path to match in the REST API. Supports exact paths (for example, /pets) or wildcard paths (for example, /pets/* to match all paths under /pets). Must match existing paths in the REST API.

methods instance-attribute
methods: list[str]

The methods to filter for.