---
title: "Function: normalizeToolName()"
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) / normalizeToolName

# Function: normalizeToolName()

> **normalizeToolName**(`toolName`): `string`

Defined in: [packages/openclaw-prefactor-plugin/src/tool-definitions.ts:388](https://github.com/prefactordev/typescript-sdk/blob/231423a775642bec119a2db45acf108c6383d05d/packages/openclaw-prefactor-plugin/src/tool-definitions.ts#L388)

Normalizes a tool name to its canonical form.
Falls back to the original name if no mapping exists.

## Parameters

### toolName

`string`

## Returns

`string`