---
title: "tool from json · RUAL Documentation"
description: "Cast a raw JSON object into a tool for a message block's tools pin; for full control beyond the build tool block."
canonical: https://docs.rual.nl/block-types/anthropic/anthropicconnection_tool_from_json
language: en
---

# tool from json

This block is part of the [`anthropic`](https://docs.rual.nl/block-types/anthropic) group and was last modified in core [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

Cast a raw JSON object into a tool for a message block's tools pin; for full control beyond the build tool block.

- json required `object` The raw tool definition (e.g. {name, description, schema, function} for a custom tool, or {type, config} for a server tool).

- tool `anthropictool` The tool; wire into a message block's tools pin.

| `raw tool` |
| --- |
| `custom tool json` |
| `tool cast` |

A typical wiring for [tool from JSON](https://docs.rual.nl/block-types/anthropic/anthropicconnection_tool_from_json): [new object](https://docs.rual.nl/block-types/object/object_new_fields) feeds the `json` pin; the `tool` out pin feeds [send message](https://docs.rual.nl/block-types/anthropic/anthropicconnection_message).

![Studio canvas example for the tool from JSON block: typical wiring for tool from JSON.](https://docs.rual.nl/canvas-examples/anthropicconnection_tool_from_json.png)

### Version history

Introduced in [`v15.0.0`](https://docs.rual.nl/core-versions/150000).
