> For the complete documentation index, see [llms.txt](https://docs-kr.zep.us/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-kr.zep.us/zep-script-api/zepscriptapi/scriptmap/field.md).

# Field

### 소개

맵과 관련된 속성 값을 조회 할 수 있습니다. \
현재는 맵의 **이름(name)**, **너비(width), 높이(height)** 필드를 조회할 수 있습니다

🔒 아이콘이 있는 필드는 수정이 불가능한 읽기 전용 필드입니다.

| 이름        | 설명              |
| --------- | --------------- |
| 🔒 name   | 맵의 이름 값을 가져옵니다. |
| 🔒 width  | 맵의 너비 값을 가져옵니다. |
| 🔒 height | 맵의 높이 값을 가져옵니다  |

## 📚 API 설명 및 예제

### name

{% hint style="info" %}
Map.name: string
{% endhint %}

맵의 이름 값을 가져옵니다.

**예제**

맵의 이름 값을 채팅창에 출력해보기.

```jsx
// q 키를 누르면 동작하는 함수
// App.addOnKeyDown
App.addOnKeyDown(81, function (player) {
	App.sayToAll(`맵 이름: ${Map.name}`);
});
```

### width & height

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

맵의 너비와 높이 값을 가져옵니다.

**예제**

맵의 너비, 높이 값을 채팅창에 출력해보기.

```jsx
// q 키를 누르면 동작하는 함수
// App.addOnKeyDown
App.addOnKeyDown(81, function (player) {
	App.sayToAll(`맵 가로 크기: ${Map.width}`);
	App.sayToAll(`맵 세로 크기: ${Map.height}`);
});
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
