# simulator_logs

> MCP टूल जो टीम के Simulator का डिवाइस log पढ़ता है: आखिरी lines, या अगले कुछ सेकंड में वह जो लिखता है।

Source: https://air.build/hi/docs/mcp-tools/simulator_logs/

`simulator_logs` टीम के चल रहे Simulator का unified log पढ़ता है। यह रीड-ओनली है। डिफ़ॉल्ट रूप से यह आखिरी `lines` lines लौटाता है। `followSeconds` के साथ यह इसके बजाय वह इकट्ठा करता है जो डिवाइस अभी से उतने सेकंड में लिखता है। जैसे, follow करना शुरू करें, फिर किसी दूसरे कॉल या क्लाइंट से अपने ऐप से वह काम करवाएँ जिसे आप टेस्ट कर रहे हैं। log पूरे डिवाइस का होता है, किसी एक ऐप का नहीं: lines में अपने ऐप के process का नाम ढूँढें। यह ऐप या level के अनुसार फ़िल्टर नहीं करता।

| रीड-ओनली | डिस्ट्रक्टिव | आइडेम्पोटेंट |
| --- | --- | --- |
| हाँ | नहीं | हाँ |

## इनपुट

| इनपुट | टाइप | ज़रूरी | डिफ़ॉल्ट | यह क्या करता है |
| --- | --- | --- | --- | --- |
| `teamId` | string (UUID) | हाँ | — | टीम, [list_teams](https://air.build/hi/docs/mcp-tools/list_teams/) से |
| `simulator` | string | नहीं | टीम का डिफ़ॉल्ट डिवाइस | कौन-सा डिवाइस, [list_simulators](https://air.build/hi/docs/mcp-tools/list_simulators/#result) से मिले `id` से |
| `lines` | integer, 1 से 2000 | नहीं | `120` | सबसे नई कितनी lines लौटानी हैं। `followSeconds` के साथ अनदेखा किया जाता है |
| `followSeconds` | integer, 0 से 120 | नहीं | — | इसके बजाय इतने सेकंड तक नई lines इकट्ठा करें; `0` इसे छोड़ने जैसा ही है |

## नतीजा

आखिरी lines:

| फ़ील्ड | मतलब |
| --- | --- |
| `ok` | `true` |
| `lines` | log lines, सबसे पुरानी पहले |

`followSeconds` के साथ:

| फ़ील्ड | मतलब |
| --- | --- |
| `lines` | follow करते समय लिखी गई lines, सबसे पुरानी पहले |
| `seconds` | इसने कितनी देर follow किया |
| `truncated` | सिर्फ़ जब और भी था: `Only the last 256 KB are kept.` |

```json
{ "ok": true, "lines": [ "2026-11-20 10:00:00.000 Notes[4321:…] Saved note" ] }
```

## त्रुटियाँ

| संदेश | कब | क्या करें |
| --- | --- | --- |
| lines must be a whole number of at least 0. | `lines` पूर्ण संख्या नहीं है | 1 से 2000 भेजें |
| followSeconds must be a whole number of at least 0. | `followSeconds` पूर्ण संख्या नहीं है | 1 से 120 भेजें |
| followSeconds is at most 120. | `followSeconds` 120 से ज़्यादा है | अधिकतम 120 भेजें, और ज़्यादा के लिए फिर से कॉल करें |

साथ ही वे त्रुटियाँ जो हर Simulator टूल लौटा सकता है: देखें [start_simulator](https://air.build/hi/docs/mcp-tools/start_simulator/#device-errors)।

## उदाहरण

```json
{"name": "simulator_logs", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "followSeconds": 20}}
```
