---
title: "Function: buildToolSpanSchema()"
editUrl: true
head: []
template: doc
sidebar:
  hidden: false
  attrs: {}
pagefind: true
draft: false
---

[**Prefactor TypeScript SDK**](../../../index.md)

***

[Prefactor TypeScript SDK](../../../modules.md) / [@prefactor/openclaw-prefactor-plugin](../index.md) / buildToolSpanSchema

# Function: buildToolSpanSchema()

> **buildToolSpanSchema**(`inputSchema`): `JsonSchema`

Defined in: [packages/openclaw-prefactor-plugin/src/tool-span-contract.ts:104](https://github.com/prefactordev/typescript-sdk/blob/231423a775642bec119a2db45acf108c6383d05d/packages/openclaw-prefactor-plugin/src/tool-span-contract.ts#L104)

Builds a complete JSON schema for a tool span.

## Parameters

### inputSchema

`JsonSchema`

JSON Schema for the tool's input parameters

## Returns

`JsonSchema`

Complete tool span schema