collect_reports
Collect daily KPI report data for specified month ranges using browser automation. Generates structured Markdown reports with persistent session management after login verification.
Instructions
采集指定月份范围的日报数据
⚠️ 重要:使用前请先确保已登录!
推荐流程:
先调用 check_login_status 检查登录状态
如果未登录,调用 browser_login 进行登录
登录成功后,再调用本工具采集数据
这样可以避免采集过程被登录流程阻塞。
Args: start_month: 起始月份,格式 YYYY-MM (例如: 2025-07) end_month: 结束月份,格式 YYYY-MM (例如: 2025-09) output_file: 输出文件路径(可选,默认为 ~/.yst_mcp/output/new.md 或项目目录下 data/new.md) auto_login: 未登录时是否自动启动浏览器登录(默认 False,不推荐设为 True)
Returns: 采集结果描述
Input Schema
Name | Required | Description | Default |
---|---|---|---|
auto_login | No | ||
end_month | Yes | ||
output_file | No | ||
start_month | Yes |
Input Schema (JSON Schema)
{
"properties": {
"auto_login": {
"default": false,
"type": "boolean"
},
"end_month": {
"type": "string"
},
"output_file": {
"default": null,
"type": "string"
},
"start_month": {
"type": "string"
}
},
"required": [
"start_month",
"end_month"
],
"type": "object"
}