π Wiki¶
Pages, grids, comments, attachments.
58 operations Β· CLI Β· MCP Β· Python
Sign in¶
| You need | Set |
|---|---|
| a token | YANDEX_ID_OAUTH_TOKEN: a Yandex ID OAuth token; ycli auth login gets one. A ready IAM token in YANDEX_CLOUD_IAM_TOKEN works in its place |
| an organization | YANDEX_ID_ORGANIZATION_ID (Yandex 360, sent as X-Org-Id) or YANDEX_CLOUD_ORGANIZATION_ID (Yandex Cloud, sent as X-Cloud-Org-Id) |
How to get each of them: Authenticate.
Typical tasks¶
Read a page¶
ycli wiki pages get-meta team/roadmap
{
"name": "wiki_pages_get_meta",
"arguments": {
"slug": "team/roadmap"
}
}
wiki.pages.get("team/roadmap", fields="attributes,owner")
Create a page¶
ycli wiki pages create --slug eng/new --title 'New page' --content '# New'
{
"name": "wiki_pages_create",
"arguments": {
"body": {
"slug": "eng/new",
"title": "New page",
"content": "# New"
}
}
}
wiki.pages.create(PageCreate(slug="eng/new", title="New page", content="# New"))
Add to a page¶
ycli wiki pages append 4601 --content '## Top note' --location top
{
"name": "wiki_pages_append",
"arguments": {
"page_id": 4601,
"body": {
"content": "## Top note",
"body": {
"location": "top"
}
}
}
}
wiki.pages.append(4601, PageAppendContent(content="## Top note", body=PageAppendContentBody(location="top")))
Read a grid¶
ycli wiki grids get 0b5e6f7a-1c2d-4e3f-8a9b-0c1d2e3f4a01 --fields attributes,user_permissions --row-filter '[owner] ~ vera' --only-cols name,owner --only-rows r1,r2 --revision 9 --sort -name
{
"name": "wiki_grids_get",
"arguments": {
"grid_id": "0b5e6f7a-1c2d-4e3f-8a9b-0c1d2e3f4a01",
"fields": "attributes,user_permissions",
"row_filter": "[owner] ~ vera",
"only_cols": "name,owner",
"only_rows": "r1,r2",
"revision": "9",
"sort": "-name"
}
}
wiki.grids.get("0b5e6f7a-1c2d-4e3f-8a9b-0c1d2e3f4a01", fields="attributes,user_permissions", row_filter="[owner] ~ vera", only_cols="name,owner", only_rows="r1,r2", revision="9", sort="-name")
Reference¶
- CLI commands
- MCP tools
- Python SDK
- Guide for an agent: the MCP resource
ycli://wiki/guide