set_cookie
Sets Tencent Cloud console authentication cookie and optional csrfCode for cluster search via DMC.
Instructions
Set or update the Tencent Cloud console cookie. AI can obtain this from the browser via Chrome DevTools MCP: document.cookie Then pass the full cookie string here.
The mc_gtk (csrfCode) value is required for cluster search (DescribeClusters API). AI can extract it from the browser's performance API: performance.getEntriesByType('resource') .find(e => e.name.includes('csrfCode=')) ?.name.match(/csrfCode=(\d+)/)?.[1] If not provided, DMC login/SQL tools will still work (they don't require mc_gtk to be valid), but find_instance_by_ip will fail.
Args: cookie: Full cookie string from the Tencent Cloud console browser tab. mc_gtk: Optional csrfCode value from the browser. Required for cluster search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cookie | Yes | ||
| mc_gtk | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |