Skip to contents

Snapshots the tool definition as tools/list sends it to clients: name, title, description, input schema and annotations. Any change to the tool's interface then shows up in review.

Usage

expect_tool_schema(tool, package = testthat::testing_package())

Arguments

tool

Name of the tool.

package

Package that serves the tool, by default the one being tested.

Value

The value of testthat::expect_snapshot(), invisibly.

Examples

if (FALSE) { # \dontrun{
# In the tests of a package made by create_mordew():
expect_tool_schema(
  "longest_runs"
)
} # }