mp_screenshot
Capture screenshots of WeChat Mini Program viewports for debugging and documentation purposes. Returns inline images or saves to specified file paths to help developers verify UI appearance and identify visual issues.
Instructions
截取当前小程序视口的截图。默认返回内联图片,或保存到文件路径。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | No | ||
| path | No |
Input Schema (JSON Schema)
{
"properties": {
"connection": {
"additionalProperties": false,
"properties": {
"account": {
"minLength": 1,
"type": "string"
},
"args": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"not": {}
}
]
},
"autoClose": {
"type": "boolean"
},
"cliPath": {
"minLength": 1,
"type": "string"
},
"cwd": {
"minLength": 1,
"type": "string"
},
"mode": {
"enum": [
"launch",
"connect"
],
"type": "string"
},
"port": {
"exclusiveMinimum": 0,
"type": "integer"
},
"projectPath": {
"minLength": 1,
"type": "string"
},
"ticket": {
"minLength": 1,
"type": "string"
},
"timeout": {
"exclusiveMinimum": 0,
"type": "integer"
},
"trustProject": {
"type": "boolean"
},
"wsEndpoint": {
"minLength": 1,
"type": "string"
}
},
"type": "object"
},
"path": {
"minLength": 1,
"type": "string"
}
},
"type": "object"
}