simulator_content_size
這個 MCP 工具會讀取或設定團隊模擬器的動態字體文字大小。
simulator_content_size 會讀取團隊正在執行的模擬器的文字大小類別(動態字體),或用 contentSize 設定它,以查看 App 在文字很小或很大時的版面配置。省略 contentSize 即可只讀取而不做任何變更。再次設定相同的值不會有影響。裝置是共用的,所以變更會對所有使用它的人顯示。由於它可以變更裝置,因此沒有標示為唯讀。
| 唯讀 | 破壞性 | 冪等 |
|---|---|---|
| 否 | 否 | 是 |
輸入
| 輸入 | 類型 | 必填 | 預設值 | 作用 |
|---|---|---|---|---|
teamId |
字串(UUID) | 是 | — | 團隊,來自 list_teams |
simulator |
string | 否 | 團隊的預設裝置 | 哪種裝置,使用 list_simulators 中的 id |
contentSize |
string | 否 | — | 要設定的大小,由小到大:extra-small、small、medium、large(iOS 預設值)、extra-large、extra-extra-large、extra-extra-extra-large、accessibility-medium、accessibility-large、accessibility-extra-large、accessibility-extra-extra-large、accessibility-extra-extra-extra-large。省略時,工具只會讀取 |
結果
| 欄位 | 說明 |
|---|---|
ok |
true |
contentSize |
上面的值之一;僅在讀取時出現 |
{ "ok": true, "contentSize": "large" }錯誤
| 訊息 | 何時出現 | 處理方式 |
|---|---|---|
| contentSize must be one of extra-small, small, medium, large, extra-large, extra-extra-large, extra-extra-extra-large, accessibility-medium, accessibility-large, accessibility-extra-large, accessibility-extra-extra-large, accessibility-extra-extra-extra-large. | 其他值 | 使用列出的值之一 |
另外還有每個模擬器工具都可能傳回的錯誤:請參閱 start_simulator。
範例
{"name": "simulator_content_size", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "contentSize": "accessibility-large"}}