# Tool.getId

Returns the id of a tool.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
tool:getId(  )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Tool.md#getid)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `tool` | [Tool](../Game-Script-Environment/Userdata/Tool.md) | The tool. |

**Returns:**

| Type | Description |
| --- | --- |
| integer | The tool's id. |
