# Field

### Introduction

Provided below are all the attribute values pertaining to Map. Currently, the Map’s width and height fields cannot be seen.

🔒 Fields with this icon are read-only fields that cannot be revised.

<table><thead><tr><th width="180">Name</th><th>Description</th></tr></thead><tbody><tr><td>🔒 width</td><td>Calls the map’s width value.</td></tr><tr><td>🔒 height</td><td>Calls the map’s height value.</td></tr></tbody></table>

## 📚 API Explanation and Example

### width & height

{% hint style="info" %}
Map.width : Number \
Map.height : Number
{% endhint %}

Calls the map’s width and height values.

**Example**

Display the map’s width and height values on the chat screen.

```jsx
// Activates function when q is pressed  
// **[App.addOnKeyDown Description (Link)](https://www.notion.so/Callbacks-7ac5078bab7c4f3180ae05463713581d)**
App.addOnKeyDown(81, function (player) {
	App.sayToAll(`map's horizontal size: ${Map.width}`);
	App.sayToAll(`map's vertical size: ${Map.height}`);
});
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zep.us/zep-script/zep-script-api/scriptmap/field.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
