Web Yu-pri CLI
Use this skill when a task involves Japan Post Web Yu-pri label entry at
https://mgr.post.japanpost.jp/C30P01Action.do, especially repetitive contents
line entry.
Install
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=web-yu-pri/agent-harness
If no browser is found:
python -m playwright install chromium
Safety Rules
- Do not put Japan Post credentials in commands, files, logs, or prompts.
- Use
open-login so the user can log in manually in the persistent profile.
- Run
contents fill ... --dry-run --json before live form filling.
- This CLI does not click final shipment confirmation or purchase buttons.
- Keep item lines separate when the source data has separate award/category
lines, while preserving the requested declared total.
Common Commands
cli-anything-web-yu-pri --json doctor
cli-anything-web-yu-pri open-login
cli-anything-web-yu-pri --json status --url https://mgr.post.japanpost.jp/M060800.do
cli-anything-web-yu-pri --json plan items.json
cli-anything-web-yu-pri --json contents fill items.json --dry-run
cli-anything-web-yu-pri --json contents fill items.json --total-value 17000
Items File
JSON:
{
"items": [
{"description": "Award plaque", "value": 8000, "quantity": 1, "country": "KR"},
{"description": "Certificate", "value": 9000, "quantity": 1, "country": "KR"}
]
}
CSV headers can use these aliases:
- description:
description, desc, content, contents, item, name, pkg
- value:
value, declared_value, cost, price, amount, yen, jpy
- quantity:
quantity, qty, num, count
- country:
country, country_code, country_of_origin, origin, couCd, cou_cd
- HS code:
hs_code, hs, hscode, hsCode
By default, value is treated as the line declared value. Use --value-mode unit
when value should be multiplied by quantity.
Selector Diagnostics
cli-anything-web-yu-pri --json selectors
cli-anything-web-yu-pri snapshot --url https://mgr.post.japanpost.jp/M060800.do -o page.png --html-output page.html
Known contents-page controls:
#M060800_itemBean_pkg
#M060800_itemBean_cost_value
#M060800_itemBean_num_value
#M060800_itemBean_couCd
#M060800_itemBean_hsCode
#M060800_shippingBean_pkgType
#M060800_shippingBean_pkgTotalPrice_value
#M060800_ShippingBean_danger
submitCommand('itemAdd2')
1---2name: cli-anything-web-yu-pri3description: Use Japan Post Web Yu-pri from a CLI by driving the real browser UI for login, inspection, screenshots, dry-run planning, and contents-form filling.4---5
6# Web Yu-pri CLI
7
8Use this skill when a task involves Japan Post Web Yu-pri label entry at
9`https://mgr.post.japanpost.jp/C30P01Action.do`, especially repetitive contents
10line entry.
11
12## Install
13
14```bash
15pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=web-yu-pri/agent-harness
16```
17
18If no browser is found:
19
20```bash
21python -m playwright install chromium
22```
23
24## Safety Rules
25
26- Do not put Japan Post credentials in commands, files, logs, or prompts.
27- Use `open-login` so the user can log in manually in the persistent profile.
28- Run `contents fill ... --dry-run --json` before live form filling.
29- This CLI does not click final shipment confirmation or purchase buttons.
30- Keep item lines separate when the source data has separate award/category
31 lines, while preserving the requested declared total.
32
33## Common Commands
34
35```bash
36cli-anything-web-yu-pri --json doctor
37cli-anything-web-yu-pri open-login
38cli-anything-web-yu-pri --json status --url https://mgr.post.japanpost.jp/M060800.do
39cli-anything-web-yu-pri --json plan items.json
40cli-anything-web-yu-pri --json contents fill items.json --dry-run
41cli-anything-web-yu-pri --json contents fill items.json --total-value 17000
42```
43
44## Items File
45
46JSON:
47
48```json
49{
50 "items": [
51 {"description": "Award plaque", "value": 8000, "quantity": 1, "country": "KR"},
52 {"description": "Certificate", "value": 9000, "quantity": 1, "country": "KR"}
53 ]
54}
55```
56
57CSV headers can use these aliases:
58
59- description: `description`, `desc`, `content`, `contents`, `item`, `name`, `pkg`
60- value: `value`, `declared_value`, `cost`, `price`, `amount`, `yen`, `jpy`
61- quantity: `quantity`, `qty`, `num`, `count`
62- country: `country`, `country_code`, `country_of_origin`, `origin`, `couCd`, `cou_cd`
63- HS code: `hs_code`, `hs`, `hscode`, `hsCode`
64
65By default, `value` is treated as the line declared value. Use `--value-mode unit`
66when value should be multiplied by quantity.
67
68## Selector Diagnostics
69
70```bash
71cli-anything-web-yu-pri --json selectors
72cli-anything-web-yu-pri snapshot --url https://mgr.post.japanpost.jp/M060800.do -o page.png --html-output page.html
73```
74
75Known contents-page controls:
76
77- `#M060800_itemBean_pkg`
78- `#M060800_itemBean_cost_value`
79- `#M060800_itemBean_num_value`
80- `#M060800_itemBean_couCd`
81- `#M060800_itemBean_hsCode`
82- `#M060800_shippingBean_pkgType`
83- `#M060800_shippingBean_pkgTotalPrice_value`
84- `#M060800_ShippingBean_danger`
85- `submitCommand('itemAdd2')`