ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิวได้แล้ว
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · วิธีติดตั้งภาษาไทยทุกตัว

ASTra

โดย Attentionformรุ่น 0.4.1i★ 0iรันบนเครื่อง
ชื่อใน registrycom.attentionform/astra-mcp-server

วิธีติดตั้ง

ใช้ทำอะไรได้

ยังไม่มีคำอธิบายภาษาไทย ดูข้อเท็จจริงด้านล่าง หรือเปิดคำอธิบายต้นฉบับจากผู้ทำ

  • ต่อแบบ ติดตั้งในเครื่อง
  • บัญชีหรือคีย์ ไม่ต้องใส่คีย์
  • หมวด เอกสาร ตาราง และงานออฟฟิศ
คำอธิบายต้นฉบับจากผู้ทำ (อังกฤษ)
Lets AI agents edit Word (.docx) files. Every save is schema-checked and kept as a git commit.

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ผลตรวจผ่าน 2/3 · ทำงานบนเครื่องคุณ

ขั้นแรก: คุณใช้ AI ตัวไหน

เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง

ต่อกับ Claude ได้ แต่ต้องเตรียมก่อน

ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว) · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ

  1. ลง Node.js ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Node.js

    เปิดหน้าดาวน์โหลด Node.js ↗

  2. เปิดไฟล์ตั้งค่าของแอป Claude บนคอม

    SettingsDeveloperEdit Config

  3. วางค่าตั้งนี้แล้วบันทึกไฟล์

    {
      "mcpServers": {
        "astra": {
          "command": "npx",
          "args": [
            "-y",
            "@attentionform/astra-mcp-server",
            "--allowed-dir",
            "ใส่ค่าของคุณ"
          ]
        }
      }
    }
  4. ปิดแอป Claude แล้วเปิดใหม่

  5. ลองเลย

    ใช้ ASTra บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude บอกว่ากำลังใช้ ASTra หรือมีชื่อเครื่องมือของ ASTra ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ChatGPT ยังต่อ ASTra ไม่ได้

ASTra ต้องติดตั้งในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะตัวที่ทำงานบนเว็บ

คุณทำแบบนี้แทนได้

ก · ใช้แอปที่ต่อ ASTra ได้

  • ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว) · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ
  • ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว)
  • ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว) · ไม่มีปุ่มกดทีเดียว ต้องวางค่าตั้งและกรอกค่าเอง
  • ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว) · ไม่มีปุ่มกดทีเดียว ต้องวางค่าตั้งและกรอกค่าเอง

ข · ตัวอื่นในหมวด เอกสาร ตาราง และงานออฟฟิศ ที่ต่อกับ ChatGPT ได้

เลือกจากตัวที่ใช้มากในหมวดเดียวกัน เฉพาะตัวที่ต่อด้วยที่อยู่ได้โดยไม่ต้องใส่คีย์

ต่อกับ Claude Code ได้ แต่ต้องเตรียมก่อน

ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว)

  1. ลง Node.js ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Node.js

    เปิดหน้าดาวน์โหลด Node.js ↗

  2. เปิด Terminal

    Mac: กด Command+Space พิมพ์ Terminal · Windows: เปิด PowerShell

  3. วางคำสั่งนี้แล้วกด Enter

    claude mcp add --scope user astra -- npx -y @attentionform/astra-mcp-server --allowed-dir 'ใส่ค่าของคุณ'
  4. พิมพ์ /mcp ใน Claude Code

    ต้องเห็น ASTra ในรายการและขึ้นว่าเชื่อมต่อแล้ว

  5. ลองเลย

    ใช้ ASTra บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude Code บอกว่ากำลังใช้ ASTra หรือมีชื่อเครื่องมือของ ASTra ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ Cursor ได้ แต่ต้องเตรียมก่อน

ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว) · ไม่มีปุ่มกดทีเดียว ต้องวางค่าตั้งและกรอกค่าเอง

  1. ลง Node.js ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Node.js

    เปิดหน้าดาวน์โหลด Node.js ↗

  2. เปิดไฟล์ตั้งค่า MCP ของ Cursor

    ~/.cursor/mcp.json

    วางค่าตั้งนี้ กรอกค่าที่ว่างไว้ แล้วบันทึกไฟล์

    {
      "mcpServers": {
        "astra": {
          "command": "npx",
          "args": [
            "-y",
            "@attentionform/astra-mcp-server",
            "--allowed-dir",
            "ใส่ค่าของคุณ"
          ]
        }
      }
    }
  3. เปิดแชตของ AI ใน Cursor โหมด Agent

  4. ลองเลย

    ใช้ ASTra บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Cursor บอกว่ากำลังใช้ ASTra หรือมีชื่อเครื่องมือของ ASTra ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Cursor เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ VS Code ได้ แต่ต้องเตรียมก่อน

ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว) · ไม่มีปุ่มกดทีเดียว ต้องวางค่าตั้งและกรอกค่าเอง

  1. ลง Node.js ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Node.js

    เปิดหน้าดาวน์โหลด Node.js ↗

  2. เปิดไฟล์ตั้งค่า MCP ของ VS Code

    MCP: Open User Configuration

    วางค่าตั้งนี้ กรอกค่าที่ว่างไว้ แล้วบันทึกไฟล์

    {
      "servers": {
        "astra": {
          "type": "stdio",
          "command": "npx",
          "args": [
            "-y",
            "@attentionform/astra-mcp-server",
            "--allowed-dir",
            "ใส่ค่าของคุณ"
          ]
        }
      }
    }
  3. เปิดแชตของ AI ใน VS Code โหมด Agent

  4. ลองเลย

    ใช้ ASTra บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า VS Code บอกว่ากำลังใช้ ASTra หรือมีชื่อเครื่องมือของ ASTra ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ VS Code เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

โปรแกรมอื่นที่ใช้ MCP ได้ เช่น Windsurf, Zed หรือ Gemini CLI มีวิธีเพิ่มต่างกัน ดูวิธีของแต่ละตัวในหน้ารวมโปรแกรม

ดูโปรแกรมที่ใช้ MCP ทั้งหมด →

ค่าตั้งแบบไฟล์ JSON อยู่ในหัวข้อ “สำหรับคนเขียนโค้ด” ด้านล่าง

ติดตรงไหน? ถามคนที่ใช้ ASTra อยู่💬 พูดคุย →
สำหรับคนเขียนโค้ด: คำสั่ง Terminal และค่าตั้ง JSON

ติดตั้งในเครื่อง

Claude Code

claude mcp add --scope user astra -- npx -y @attentionform/astra-mcp-server --allowed-dir 'ใส่ค่าของคุณ'

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "astra": {
      "command": "npx",
      "args": [
        "-y",
        "@attentionform/astra-mcp-server",
        "--allowed-dir",
        "ใส่ค่าของคุณ"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "astra": {
      "command": "npx",
      "args": [
        "-y",
        "@attentionform/astra-mcp-server",
        "--allowed-dir",
        "ใส่ค่าของคุณ"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "astra": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@attentionform/astra-mcp-server",
        "--allowed-dir",
        "ใส่ค่าของคุณ"
      ]
    }
  }
}

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

สรุป

ดาวน์โหลดต่อสัปดาห์i
833/สัปดาห์
โดเมนที่ยืนยัน
✓ attentionform.com
licensei
ไม่ระบุ license
การเชื่อมต่อ
รันบนเครื่อง
รุ่นล่าสุดi
0.4.1
ส่งเข้า registryi
11 พ.ย. 2569
แก้โค้ดล่าสุดi
11 พ.ย. 2569
ผู้ทำ
Attentionform
แพ็กเกจ
npm: @attentionform/astra-mcp-server
เว็บผู้ทำ
attentionform.com
สถานะใน registry
ใช้งานอยู่

ใช้กับโปรแกรมไหนได้

ดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569

ติดตั้งบนเครื่องได้ใน

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

ดูโปรแกรมทั้งหมดพร้อมข้อดีข้อเสีย →

คู่มือที่เกี่ยวข้อง

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 12 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันโดเมน attentionform.com แล้ว (registry ตรวจความเป็นเจ้าของโดเมน)

  • ✓ ผ่าน

    ยังมีคนดูแล

    มีการแก้โค้ดล่าสุด เมื่อวาน

  • ! ควรระวัง

    มีสัญญาอนุญาต (license)

    GitHub อ่านชนิด license ไม่ออก ต้องเปิดไฟล์ดูเอง

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

พูดคุย

ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์

ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย

ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx

เข้าสู่ระบบด้วย Google เพื่อโพสต์

รีวิวจากผู้ใช้

ยังไม่มีรีวิว

เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิว

เทียบกับตัวอื่นในหมวด เอกสาร ตาราง และงานออฟฟิศi

  • ดาวมากกว่า 0% ของอีก 3785 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 94% ของอีก 3785 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 46% ของอีก 3785 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

ASTra ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 2 จาก 3 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด เมื่อวาน และส่งรุ่นล่าสุด (0.4.1) เข้า registry เมื่อวาน

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Puter MCP, XcodeBuildMCP, XcodeBuildMCP

ตัวอื่นในหมวดเดียวกัน

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Puter MCP

Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more

โดย HeyPuterใช้กันมาก★ 44.1Kอัปเดต 5 เดือนที่ผ่านมา

รันบนคลาวด์✓ เจ้าของบริการ · puter.com

XcodeBuildMCP

ให้ AI จัดการโปรเจกต์ Xcode สั่ง build และใช้ iOS Simulator

โดย getsentryใช้กันมาก↓ 130.5K/สัปดาห์ ยอดของแพ็กเกจที่ใช้ร่วม★ 6.6Kอัปเดต 4 เดือนที่ผ่านมา

รันบนเครื่อง✓ เจ้าของบริการ · xcodebuildmcp.com

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

โดย cameroncookeใช้กันมาก↓ 130.5K/สัปดาห์ ยอดของแพ็กเกจที่ใช้ร่วม★ 6.6Kอัปเดต 14 เดือนที่ผ่านมา

รันบนเครื่อง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

@attentionform/astra-mcp-server

Official Model Context Protocol (MCP) server for the ASTra document engine.

@attentionform/astra-mcp-server exposes a comprehensive, 19-tool agentic interface over standard I/O (stdio). It enables AI coding assistants, including Claude Desktop, Cursor, Windsurf, Cline, and custom LLM agents, to inspect, query, mutate, and export Microsoft Word (.docx) documents with transactional integrity and zero schema corruption.


Quickstart

Run with npx (Recommended)

No installation required. Pass your document directory via --allowed-dir:

npx -y @attentionform/astra-mcp-server --allowed-dir /path/to/your/documents

Security Note: ASTra enforces strict directory sandboxing. The server will only read and write files within directories explicitly declared via --allowed-dir (or the ASTRA_EXTRA_DOC_ROOTS environment variable). The path must be absolute and exist on disk. The named folders are the whole boundary: the system temp folder is not added. A symbolic link at or above a named folder is followed; a link below it that points outside it is refused.

Validation. open_document checks the file and reports valid, invalid, timed-out or skipped; it never refuses the open. A save is allowed when it adds no validator error beyond the ones the file had. Server flags: --strict-validation (also ASTRA_STRICT_VALIDATION=1) refuses every error; --open-validation-timeout (also ASTRA_OPEN_VALIDATION_TIMEOUT_MS) sets the wait at open, default 5000.

Macros and size limits. open_document takes allowMacros (keep macro parts) or stripMacros (remove the parts and every reference to them). The zip-bomb ceilings are ASTRA_MAX_RATIO (default 100) and ASTRA_MAX_UNCOMPRESSED_BYTES, read from the environment.

Global Installation
npm install -g @attentionform/astra-mcp-server

astra-mcp-server --allowed-dir /path/to/your/documents


Client Integration

Add ASTra to your AI agent with a simple JSON snippet:

1. Claude Desktop

Add ASTra to your Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
{

"mcpServers": { "astra": { "command": "npx", "args": [ "-y", "@attentionform/astra-mcp-server", "--allowed-dir", "/absolute/path/to/your/documents" ], "env": { "NODE_ENV": "production" } } } }

2. Cursor IDE

Create or edit .cursor/mcp.json in your project root:

{

"mcpServers": { "astra": { "command": "npx", "args": [ "-y", "@attentionform/astra-mcp-server", "--allowed-dir", "${workspaceFolder}" ] } } }

3. Windsurf

Add to your Windsurf MCP configuration (~/.codeium/windsurf/mcp_config.json):

{

"mcpServers": { "astra": { "command": "npx", "args": [ "-y", "@attentionform/astra-mcp-server", "--allowed-dir", "/absolute/path/to/your/documents" ] } } }

4. Cline (VS Code Extension)

In Cline's MCP settings tab, configure:

  • Server Name: astra
  • Command: npx
  • Args: ["-y", "@attentionform/astra-mcp-server", "--allowed-dir", "${workspaceFolder}"]
Schema freshness (when tools change)

Every served tool ships a version-stamped JSON copy under schemas/mcp/ (x-generated-from names the server build). Clients cache those shapes:

  • Memory caches (Claude Desktop for the app lifespan, Cursor and Zed per session): restart the host app to pick up new tools.
  • Disk caches (file-based setups that vendor the JSON copies): re-run the dump, then point the client at the fresh dir:
npx -y @attentionform/astra-mcp-server --dump-schemas ./fresh-schemas

npx -y @attentionform/astra-mcp-server --check-schemas ./fresh-schemas

--check-schemas exits 0 when every stamp matches the installed server and prints a stale-file warning with exit 1 otherwise. CI regenerates and diffs schemas/mcp/ on every push, so a schema change without refreshed copies fails the build.


The 19 MCP Tools

ASTra provides a complete set of 19 tools organized by capability. The server returns all 19 tools over tools/list:

open_document

Opens a .docx file into an isolated in-memory editing session.

Parameters:

ParameterTypeRequiredDescription
pathstringYesAbsolute path to .docx file inside an allowed directory.
sessionIdstringNoServer-minted session id (deprecated to supply; test-only).
summaryOnlybooleanNoOmitted or true returns a compact summary; false includes the full structural summary and styles XML.
allowMacrosbooleanNoPreserve macro parts byte-for-byte.
stripMacrosbooleanNoStrip macro parts upon loading.
authorstringNoDefault author for tracked changes and comments in this session that do not name one (falls back to the server's ASTRA_AUTHOR, then ASTra). An operation's own author wins.
validationTimeoutMsintegerNoHow long to wait for the validator when the file is opened, in milliseconds. 0 skips the check. Default 5000, or the server flag --open-validation-timeout / ASTRA_OPEN_VALIDATION_TIMEOUT_MS.

Returns: { ok: true, sessionId, revision, summary, evicted, validation }. validation is { status: "valid" }, { status: "invalid", preExistingErrors, messages, baselineComparable, note } when the file already has validator errors, { status: "timed-out" } or { status: "skipped" }.


inspect_document

Inspects document structure using Token-Optimized Outline Notation (TOON).

Parameters:

ParameterTypeRequiredDescription
sessionIdstringYesActive session identifier.
fidelitystringNo"compact" (default), "standard", or "full".
sectionIdstringNoRestrict outline to a specific section.
maxTextLengthnumberNoTruncate run text at character limit.
offsetnumberNoPagination start row for document nodes only (default: 0). An offset past the last node is rejected.
limitnumberNoMaximum node rows to return (default: 50, max: 200).
aroundNodestringNoNode ID to center the inspection window around.
windownumberNoHalf-width of rows around aroundNode (default: 5).
maxTokensnumberNoToken budget cutoff on clean row boundary (200–8000).
includearrayNoOptional review records to include: ["comments"], ["revisions"], or both.
reviewOffsetnumberNoStart record for the include lists (default: 0). Pages comments and revisions without moving the node window.
reviewLimitnumberNoRecords per include list (default: 50; values above 50 are clamped to 50).
commentIdnumberNoSpecific comment ID to inspect. Needs include:["comments"].
revisionIdnumberNoSpecific tracked revision ID to inspect. Needs include:["revisions"].

Returns: { ok: true, sessionId, revision, fidelity, palette, toonText, rowCount }


search_content

Fast text search returning matching stable node IDs and text snippets.

Parameters:

ParameterTypeRequiredDescription
sessionIdstringYesActive session identifier.
querystringYesSearch query string (1–500 characters).
regexbooleanNoTreat query as regular expression (default: false).
scopestringNoSearch scope: "body" (default), "comments", or "all".

Returns: { ok: true, sessionId, matches: [{ id, preview, cells? }], truncated? }. At most 50 matches are returned; truncated: true says more exist. A table hit lists cells, up to five cell addresses such as t_001:r3c1, that you can pass as the target of replace, style, namedStyle, clearFormat, hyperlink, bookmark or comment. Cell addresses are :r c , 1-based as inspect_document prints the grid (add :p for a cell with several paragraphs).


execute_batch

Executes an atomic array of typed operations with schema validation and rollback guarantees.

Parameters:

ParameterTypeRequiredDescription
sessionIdstringYesActive session identifier.
operationsarrayYesArray of 1 to 500 typed operation objects.
sequentialbooleanNoApply operations sequentially in order (default: true).
rollbackOnErrorbooleanNoRoll back entire batch if any operation fails (default: true).
maxStepsnumberNoMaximum execution steps before aborting.
allowedDirstringNoJail directory for image filePath reads.
styleGuidestringNoPer-batch style guide override (name or .md path).

Returns: { ok: true, sessionId, appliedCount, revision, createdNodeIds, revisionsPending, revisionsUnresolved?, revisionsRemedy?, revisionResolution? }. revisionsPending counts every revision element left (a move counts as each of its markers). After a trackedChange that left revisions it could not resolve, revisionsUnresolved counts them and revisionsRemedy lists kind, node and reason instead of repeating acceptAll. revisionResolution also lists removedBookmarks, removedComments and staleLinks when a removed paragraph carried them.


save_document

Validates all modified XML parts against ECMA-376 schema and commits changes to disk.

Parameters:

ParameterTypeRequiredDescription
sessionIdstringYesActive session identifier.
outPathstringNoTarget path (defaults to original session path).
messagestringNoCommit log message for document history.
authorstringNoAuthor name for document history.
allowMacrosbooleanNoExplicit macro policy to keep macros on save.
stripMacrosbooleanNoExplicit macro policy to strip macros on save.
strictbooleanNoRefuse every validator error, including errors the file already had when it was opened. Also refuses paragraphs that share a w14:paraId, which a save otherwise renumbers. Default: off, or the server flag --strict-validation / ASTRA_STRICT_VALIDATION=1.

Returns: { ok: true, sessionId, path, revision, commitOid, validation }. When the file already had validator errors and the edit added none, validation is { ok: false, tolerated: true, preExistingErrors, introducedErrors: 0, messages }; otherwise { ok: true }.


close_document

Closes the active session and releases all in-memory resources.

Parameters:

ParameterTypeRequiredDescription
sessionIdstringYesActive session identifier.

Returns: { ok: true, sessionId }


new_document

Creates a fresh .docx file from an executive template and opens it into a session.

Parameters:

ParameterTypeRequiredDescription
outPathstringYesDestination file path inside an allowed directory.
templatestringNoTemplate type: "report", "memo", or "blank" (default: "blank").
forcebooleanNoOverwrite existing file if it exists (default: false).
styleGuidestringNoBundled guide name or guide .md path to attach.

| author | string | No | Default author for tracked changes and comments in this session that do not name one (falls back to the server's ASTRA_AUTHOR, then `AST

ตัดมาแค่ช่วงต้น อ่านต่อใน repo