---
title: Microsoft SharePoint ํตํฉ
description: "CrewAI๋ฅผ ์ํ Microsoft SharePoint ํตํฉ์ผ๋ก ์ฌ์ดํธ, ๋ชฉ๋ก ๋ฐ ๋ฌธ์ ๊ด๋ฆฌ."
icon: "folder-tree"
mode: "wide"
---
## ๊ฐ์
์์ด์ ํธ๊ฐ SharePoint ์ฌ์ดํธ, ๋ชฉ๋ก ๋ฐ ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์ก์ธ์คํ๊ณ ๊ด๋ฆฌํ ์ ์๋๋ก ํฉ๋๋ค. AI ๊ธฐ๋ฐ ์๋ํ๋ก ์ฌ์ดํธ ์ ๋ณด๋ฅผ ๊ฒ์ํ๊ณ , ๋ชฉ๋ก ํญ๋ชฉ์ ๊ด๋ฆฌํ๊ณ , ํ์ผ์ ์
๋ก๋ ๋ฐ ๊ตฌ์ฑํ๋ฉฐ, SharePoint ์ํฌํ๋ก๋ฅผ ๊ฐ์ํํฉ๋๋ค.
## ์ ์ ์กฐ๊ฑด
Microsoft SharePoint ํตํฉ์ ์ฌ์ฉํ๊ธฐ ์ ์ ๋ค์ ์ฌํญ์ ํ์ธํ์ธ์:
- ํ์ฑ ๊ตฌ๋
์ด ์๋ [CrewAI AMP](https://app.crewai.com) ๊ณ์
- SharePoint ์ก์ธ์ค ๊ถํ์ด ์๋ Microsoft ๊ณ์
- [ํตํฉ ํ์ด์ง](https://app.crewai.com/crewai_plus/connectors)๋ฅผ ํตํด Microsoft ๊ณ์ ์ฐ๊ฒฐ
## Microsoft SharePoint ํตํฉ ์ค์
### 1. Microsoft ๊ณ์ ์ฐ๊ฒฐ
1. [CrewAI AMP ํตํฉ](https://app.crewai.com/crewai_plus/connectors)์ผ๋ก ์ด๋
2. ์ธ์ฆ ํตํฉ ์น์
์์ **Microsoft SharePoint** ์ฐพ๊ธฐ
3. **์ฐ๊ฒฐ**์ ํด๋ฆญํ๊ณ OAuth ํ๋ก์ฐ ์๋ฃ
4. SharePoint ์ฌ์ดํธ ๋ฐ ํ์ผ ์ก์ธ์ค์ ํ์ํ ๊ถํ ๋ถ์ฌ
5. [ํตํฉ ์ค์ ](https://app.crewai.com/crewai_plus/settings/integrations)์์ Enterprise Token ๋ณต์ฌ
### 2. ํ์ํ ํจํค์ง ์ค์น
```bash
uv add crewai-tools
```
### 3. ํ๊ฒฝ ๋ณ์ ์ค์
<Note>
`Agent(apps=[])`์ ํจ๊ป ํตํฉ์ ์ฌ์ฉํ๋ ค๋ฉด Enterprise Token์ผ๋ก
`CREWAI_PLATFORM_INTEGRATION_TOKEN` ํ๊ฒฝ ๋ณ์๋ฅผ ์ค์ ํด์ผ ํฉ๋๋ค.
</Note>
```bash
export CREWAI_PLATFORM_INTEGRATION_TOKEN="your_enterprise_token"
```
๋๋ `.env` ํ์ผ์ ์ถ๊ฐํ์ธ์:
```
CREWAI_PLATFORM_INTEGRATION_TOKEN=your_enterprise_token
```
## ์ฌ์ฉ ๊ฐ๋ฅํ ์์
<AccordionGroup>
<Accordion title="microsoft_sharepoint/get_sites">
**์ค๋ช
:** ์ฌ์ฉ์๊ฐ ์ก์ธ์คํ ์ ์๋ ๋ชจ๋ SharePoint ์ฌ์ดํธ๋ฅผ ๊ฐ์ ธ์ต๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `search` (string, ์ ํ์ฌํญ): ์ฌ์ดํธ๋ฅผ ํํฐ๋งํ๊ธฐ ์ํ ๊ฒ์ ์ฟผ๋ฆฌ.
- `select` (string, ์ ํ์ฌํญ): ๋ฐํํ ํน์ ์์ฑ ์ ํ (์: 'displayName,id,webUrl').
- `filter` (string, ์ ํ์ฌํญ): OData ๊ตฌ๋ฌธ์ ์ฌ์ฉํ์ฌ ๊ฒฐ๊ณผ ํํฐ๋ง.
- `expand` (string, ์ ํ์ฌํญ): ๊ด๋ จ ๋ฆฌ์์ค๋ฅผ ์ธ๋ผ์ธ์ผ๋ก ํ์ฅ.
- `top` (integer, ์ ํ์ฌํญ): ๋ฐํํ ํญ๋ชฉ ์ (์ต์ 1, ์ต๋ 999).
- `skip` (integer, ์ ํ์ฌํญ): ๊ฑด๋๋ธ ํญ๋ชฉ ์ (์ต์ 0).
- `orderby` (string, ์ ํ์ฌํญ): ์ง์ ๋ ์์ฑ์ผ๋ก ๊ฒฐ๊ณผ ์ ๋ ฌ (์: 'displayName desc').
</Accordion>
<Accordion title="microsoft_sharepoint/get_site">
**์ค๋ช
:** ํน์ SharePoint ์ฌ์ดํธ์ ๋ํ ์ ๋ณด๋ฅผ ๊ฐ์ ธ์ต๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): SharePoint ์ฌ์ดํธ์ ID.
- `select` (string, ์ ํ์ฌํญ): ๋ฐํํ ํน์ ์์ฑ ์ ํ (์: 'displayName,id,webUrl,drives').
- `expand` (string, ์ ํ์ฌํญ): ๊ด๋ จ ๋ฆฌ์์ค๋ฅผ ์ธ๋ผ์ธ์ผ๋ก ํ์ฅ (์: 'drives,lists').
</Accordion>
<Accordion title="microsoft_sharepoint/get_drives">
**์ค๋ช
:** SharePoint ์ฌ์ดํธ์ ๋ชจ๋ ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ(๋๋ผ์ด๋ธ)๋ฅผ ๋์ดํฉ๋๋ค. ํ์ผ ์์
์ ์ฌ์ฉํ๊ธฐ ์ ์ ์ฌ์ฉ ๊ฐ๋ฅํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ฐพ์ผ๋ ค๋ฉด ์ด ์์
์ ์ฌ์ฉํ์ธ์.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `top` (integer, ์ ํ์ฌํญ): ํ์ด์ง๋น ๋ฐํํ ์ต๋ ๋๋ผ์ด๋ธ ์ (1-999). ๊ธฐ๋ณธ๊ฐ: 100
- `skip_token` (string, ์ ํ์ฌํญ): ๋ค์ ๊ฒฐ๊ณผ ํ์ด์ง๋ฅผ ๊ฐ์ ธ์ค๊ธฐ ์ํ ์ด์ ์๋ต์ ํ์ด์ง๋ค์ด์
ํ ํฐ.
- `select` (string, ์ ํ์ฌํญ): ๋ฐํํ ์์ฑ์ ์ผํ๋ก ๊ตฌ๋ถ๋ ๋ชฉ๋ก (์: 'id,name,webUrl,driveType').
</Accordion>
<Accordion title="microsoft_sharepoint/get_site_lists">
**์ค๋ช
:** SharePoint ์ฌ์ดํธ์ ๋ชจ๋ ๋ชฉ๋ก์ ๊ฐ์ ธ์ต๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): SharePoint ์ฌ์ดํธ์ ID.
</Accordion>
<Accordion title="microsoft_sharepoint/get_list">
**์ค๋ช
:** ํน์ ๋ชฉ๋ก์ ๋ํ ์ ๋ณด๋ฅผ ๊ฐ์ ธ์ต๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): SharePoint ์ฌ์ดํธ์ ID.
- `list_id` (string, ํ์): ๋ชฉ๋ก์ ID.
</Accordion>
<Accordion title="microsoft_sharepoint/get_list_items">
**์ค๋ช
:** SharePoint ๋ชฉ๋ก์์ ํญ๋ชฉ์ ๊ฐ์ ธ์ต๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): SharePoint ์ฌ์ดํธ์ ID.
- `list_id` (string, ํ์): ๋ชฉ๋ก์ ID.
- `expand` (string, ์ ํ์ฌํญ): ๊ด๋ จ ๋ฐ์ดํฐ ํ์ฅ (์: 'fields').
</Accordion>
<Accordion title="microsoft_sharepoint/create_list_item">
**์ค๋ช
:** SharePoint ๋ชฉ๋ก์ ์ ํญ๋ชฉ์ ๋ง๋ญ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): SharePoint ์ฌ์ดํธ์ ID.
- `list_id` (string, ํ์): ๋ชฉ๋ก์ ID.
- `fields` (object, ํ์): ์ ํญ๋ชฉ์ ํ๋ ๊ฐ.
</Accordion>
<Accordion title="microsoft_sharepoint/update_list_item">
**์ค๋ช
:** SharePoint ๋ชฉ๋ก์ ํญ๋ชฉ์ ์
๋ฐ์ดํธํฉ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): SharePoint ์ฌ์ดํธ์ ID.
- `list_id` (string, ํ์): ๋ชฉ๋ก์ ID.
- `item_id` (string, ํ์): ์
๋ฐ์ดํธํ ํญ๋ชฉ์ ID.
- `fields` (object, ํ์): ์
๋ฐ์ดํธํ ํ๋ ๊ฐ.
</Accordion>
<Accordion title="microsoft_sharepoint/delete_list_item">
**์ค๋ช
:** SharePoint ๋ชฉ๋ก์์ ํญ๋ชฉ์ ์ญ์ ํฉ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): SharePoint ์ฌ์ดํธ์ ID.
- `list_id` (string, ํ์): ๋ชฉ๋ก์ ID.
- `item_id` (string, ํ์): ์ญ์ ํ ํญ๋ชฉ์ ID.
</Accordion>
<Accordion title="microsoft_sharepoint/upload_file_to_library">
**์ค๋ช
:** SharePoint ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ํ์ผ์ ์
๋ก๋ํฉ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): SharePoint ์ฌ์ดํธ์ ID.
- `file_path` (string, ํ์): ํ์ผ์ ์
๋ก๋ํ ๊ฒฝ๋ก (์: 'folder/fileName.txt').
- `content` (string, ํ์): ์
๋ก๋ํ ํ์ผ์ ๋ด์ฉ.
</Accordion>
<Accordion title="microsoft_sharepoint/list_files">
**์ค๋ช
:** SharePoint ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์์ ํ์ผ๊ณผ ํด๋๋ฅผ ๊ฐ์ ธ์ต๋๋ค. ๊ธฐ๋ณธ์ ์ผ๋ก ๋ฃจํธ ํด๋๋ฅผ ๋์ดํ์ง๋ง folder_id๋ฅผ ์ ๊ณตํ์ฌ ํ์ ํด๋๋ก ์ด๋ํ ์ ์์ต๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `folder_id` (string, ์ ํ์ฌํญ): ๋ด์ฉ์ ๋์ดํ ํด๋์ ID. ๋ฃจํธ ํด๋์ ๊ฒฝ์ฐ 'root'๋ฅผ ์ฌ์ฉํ๊ฑฐ๋ ์ด์ list_files ํธ์ถ์์ ๊ฐ์ ธ์จ ํด๋ ID๋ฅผ ์ ๊ณตํ์ธ์. ๊ธฐ๋ณธ๊ฐ: 'root'
- `top` (integer, ์ ํ์ฌํญ): ํ์ด์ง๋น ๋ฐํํ ์ต๋ ํญ๋ชฉ ์ (1-1000). ๊ธฐ๋ณธ๊ฐ: 50
- `skip_token` (string, ์ ํ์ฌํญ): ๋ค์ ๊ฒฐ๊ณผ ํ์ด์ง๋ฅผ ๊ฐ์ ธ์ค๊ธฐ ์ํ ์ด์ ์๋ต์ ํ์ด์ง๋ค์ด์
ํ ํฐ.
- `orderby` (string, ์ ํ์ฌํญ): ๊ฒฐ๊ณผ ์ ๋ ฌ ์์ (์: 'name asc', 'size desc', 'lastModifiedDateTime desc'). ๊ธฐ๋ณธ๊ฐ: 'name asc'
- `filter` (string, ์ ํ์ฌํญ): ๊ฒฐ๊ณผ๋ฅผ ์ขํ๊ธฐ ์ํ OData ํํฐ (์: 'file ne null'์ ํ์ผ๋ง, 'folder ne null'์ ํด๋๋ง).
- `select` (string, ์ ํ์ฌํญ): ๋ฐํํ ํ๋์ ์ผํ๋ก ๊ตฌ๋ถ๋ ๋ชฉ๋ก (์: 'id,name,size,folder,file,webUrl,lastModifiedDateTime').
</Accordion>
<Accordion title="microsoft_sharepoint/delete_file">
**์ค๋ช
:** SharePoint ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์์ ํ์ผ ๋๋ ํด๋๋ฅผ ์ญ์ ํฉ๋๋ค. ํด๋์ ๊ฒฝ์ฐ ๋ชจ๋ ๋ด์ฉ์ด ์ฌ๊ท์ ์ผ๋ก ์ญ์ ๋ฉ๋๋ค. ํญ๋ชฉ์ ์ฌ์ดํธ ํด์งํต์ผ๋ก ์ด๋๋ฉ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): ์ญ์ ํ ํ์ผ ๋๋ ํด๋์ ๊ณ ์ ์๋ณ์. list_files์์ ๊ฐ์ ธ์ค์ธ์.
</Accordion>
<Accordion title="microsoft_sharepoint/list_files_by_path">
**์ค๋ช
:** ๊ฒฝ๋ก๋ก SharePoint ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ํด๋์ ํ์ผ๊ณผ ํด๋๋ฅผ ๋์ดํฉ๋๋ค. ๊น์ ํ์์ ์ํด ์ฌ๋ฌ list_files ํธ์ถ๋ณด๋ค ๋ ํจ์จ์ ์
๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `folder_path` (string, ํ์): ์๋ค ์ฌ๋์ ์์ด ํด๋์ ์ ์ฒด ๊ฒฝ๋ก (์: 'Documents', 'Reports/2024/Q1').
- `top` (integer, ์ ํ์ฌํญ): ํ์ด์ง๋น ๋ฐํํ ์ต๋ ํญ๋ชฉ ์ (1-1000). ๊ธฐ๋ณธ๊ฐ: 50
- `skip_token` (string, ์ ํ์ฌํญ): ๋ค์ ๊ฒฐ๊ณผ ํ์ด์ง๋ฅผ ๊ฐ์ ธ์ค๊ธฐ ์ํ ์ด์ ์๋ต์ ํ์ด์ง๋ค์ด์
ํ ํฐ.
- `orderby` (string, ์ ํ์ฌํญ): ๊ฒฐ๊ณผ ์ ๋ ฌ ์์ (์: 'name asc', 'size desc'). ๊ธฐ๋ณธ๊ฐ: 'name asc'
- `select` (string, ์ ํ์ฌํญ): ๋ฐํํ ํ๋์ ์ผํ๋ก ๊ตฌ๋ถ๋ ๋ชฉ๋ก (์: 'id,name,size,folder,file,webUrl,lastModifiedDateTime').
</Accordion>
<Accordion title="microsoft_sharepoint/download_file">
**์ค๋ช
:** SharePoint ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์์ ์์ ํ์ผ ๋ด์ฉ์ ๋ค์ด๋ก๋ํฉ๋๋ค. ์ผ๋ฐ ํ
์คํธ ํ์ผ(.txt, .csv, .json)์๋ง ์ฌ์ฉํ์ธ์. Excel ํ์ผ์ ๊ฒฝ์ฐ Excel ์ ์ฉ ์์
์ ์ฌ์ฉํ์ธ์. Word ํ์ผ์ ๊ฒฝ์ฐ get_word_document_content๋ฅผ ์ฌ์ฉํ์ธ์.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): ๋ค์ด๋ก๋ํ ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ list_files_by_path์์ ๊ฐ์ ธ์ค์ธ์.
</Accordion>
<Accordion title="microsoft_sharepoint/get_file_info">
**์ค๋ช
:** SharePoint ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ํน์ ํ์ผ ๋๋ ํด๋์ ๋ํ ์์ธํ ๋ฉํ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ธ์ต๋๋ค. ์ด๋ฆ, ํฌ๊ธฐ, ์์ฑ/์์ ๋ ์ง ๋ฐ ์์ฑ์ ์ ๋ณด๊ฐ ํฌํจ๋ฉ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): ํ์ผ ๋๋ ํด๋์ ๊ณ ์ ์๋ณ์. list_files ๋๋ list_files_by_path์์ ๊ฐ์ ธ์ค์ธ์.
- `select` (string, ์ ํ์ฌํญ): ๋ฐํํ ์์ฑ์ ์ผํ๋ก ๊ตฌ๋ถ๋ ๋ชฉ๋ก (์: 'id,name,size,createdDateTime,lastModifiedDateTime,webUrl,createdBy,lastModifiedBy').
</Accordion>
<Accordion title="microsoft_sharepoint/create_folder">
**์ค๋ช
:** SharePoint ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์ ํด๋๋ฅผ ๋ง๋ญ๋๋ค. ๊ธฐ๋ณธ์ ์ผ๋ก ๋ฃจํธ์ ํด๋๋ฅผ ๋ง๋ค๋ฉฐ ํ์ ํด๋๋ฅผ ๋ง๋ค๋ ค๋ฉด parent_id๋ฅผ ์ฌ์ฉํ์ธ์.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `folder_name` (string, ํ์): ์ ํด๋์ ์ด๋ฆ. ์ฌ์ฉํ ์ ์๋ ๋ฌธ์: \ / : * ? " < > |
- `parent_id` (string, ์ ํ์ฌํญ): ์์ ํด๋์ ID. ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ฃจํธ์ ๊ฒฝ์ฐ 'root'๋ฅผ ์ฌ์ฉํ๊ฑฐ๋ list_files์์ ๊ฐ์ ธ์จ ํด๋ ID๋ฅผ ์ ๊ณตํ์ธ์. ๊ธฐ๋ณธ๊ฐ: 'root'
</Accordion>
<Accordion title="microsoft_sharepoint/search_files">
**์ค๋ช
:** ํค์๋๋ก SharePoint ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์์ ํ์ผ๊ณผ ํด๋๋ฅผ ๊ฒ์ํฉ๋๋ค. ํ์ผ ์ด๋ฆ, ํด๋ ์ด๋ฆ ๋ฐ Office ๋ฌธ์์ ํ์ผ ๋ด์ฉ์ ๊ฒ์ํฉ๋๋ค. ์์ผ๋์นด๋๋ ํน์ ๋ฌธ์๋ฅผ ์ฌ์ฉํ์ง ๋ง์ธ์.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `query` (string, ํ์): ๊ฒ์ ํค์๋ (์: 'report', 'budget 2024'). *.txt์ ๊ฐ์ ์์ผ๋์นด๋๋ ์ง์๋์ง ์์ต๋๋ค.
- `top` (integer, ์ ํ์ฌํญ): ํ์ด์ง๋น ๋ฐํํ ์ต๋ ๊ฒฐ๊ณผ ์ (1-1000). ๊ธฐ๋ณธ๊ฐ: 50
- `skip_token` (string, ์ ํ์ฌํญ): ๋ค์ ๊ฒฐ๊ณผ ํ์ด์ง๋ฅผ ๊ฐ์ ธ์ค๊ธฐ ์ํ ์ด์ ์๋ต์ ํ์ด์ง๋ค์ด์
ํ ํฐ.
- `select` (string, ์ ํ์ฌํญ): ๋ฐํํ ํ๋์ ์ผํ๋ก ๊ตฌ๋ถ๋ ๋ชฉ๋ก (์: 'id,name,size,folder,file,webUrl,lastModifiedDateTime').
</Accordion>
<Accordion title="microsoft_sharepoint/copy_file">
**์ค๋ช
:** SharePoint ๋ด์์ ํ์ผ ๋๋ ํด๋๋ฅผ ์ ์์น๋ก ๋ณต์ฌํฉ๋๋ค. ์๋ณธ ํญ๋ชฉ์ ๋ณ๊ฒฝ๋์ง ์์ต๋๋ค. ๋์ฉ๋ ํ์ผ์ ๊ฒฝ์ฐ ๋ณต์ฌ ์์
์ ๋น๋๊ธฐ์ ์
๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): ๋ณต์ฌํ ํ์ผ ๋๋ ํด๋์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `destination_folder_id` (string, ํ์): ๋์ ํด๋์ ID. ๋ฃจํธ ํด๋์ ๊ฒฝ์ฐ 'root'๋ฅผ ์ฌ์ฉํ๊ฑฐ๋ list_files์์ ๊ฐ์ ธ์จ ํด๋ ID๋ฅผ ์ฌ์ฉํ์ธ์.
- `new_name` (string, ์ ํ์ฌํญ): ๋ณต์ฌ๋ณธ์ ์ ์ด๋ฆ. ์ ๊ณตํ์ง ์์ผ๋ฉด ์๋ ์ด๋ฆ์ด ์ฌ์ฉ๋ฉ๋๋ค.
</Accordion>
<Accordion title="microsoft_sharepoint/move_file">
**์ค๋ช
:** SharePoint ๋ด์์ ํ์ผ ๋๋ ํด๋๋ฅผ ์ ์์น๋ก ์ด๋ํฉ๋๋ค. ํญ๋ชฉ์ ์๋ ์์น์์ ์ ๊ฑฐ๋ฉ๋๋ค. ํด๋์ ๊ฒฝ์ฐ ๋ชจ๋ ๋ด์ฉ๋ ํจ๊ป ์ด๋๋ฉ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): ์ด๋ํ ํ์ผ ๋๋ ํด๋์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `destination_folder_id` (string, ํ์): ๋์ ํด๋์ ID. ๋ฃจํธ ํด๋์ ๊ฒฝ์ฐ 'root'๋ฅผ ์ฌ์ฉํ๊ฑฐ๋ list_files์์ ๊ฐ์ ธ์จ ํด๋ ID๋ฅผ ์ฌ์ฉํ์ธ์.
- `new_name` (string, ์ ํ์ฌํญ): ์ด๋๋ ํญ๋ชฉ์ ์ ์ด๋ฆ. ์ ๊ณตํ์ง ์์ผ๋ฉด ์๋ ์ด๋ฆ์ด ์ ์ง๋ฉ๋๋ค.
</Accordion>
<Accordion title="microsoft_sharepoint/get_excel_worksheets">
**์ค๋ช
:** SharePoint ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์ ์ฅ๋ Excel ํตํฉ ๋ฌธ์์ ๋ชจ๋ ์ํฌ์ํธ(ํญ)๋ฅผ ๋์ดํฉ๋๋ค. ๋ฐํ๋ ์ํฌ์ํธ ์ด๋ฆ์ ๋ค๋ฅธ Excel ์์
์ ์ฌ์ฉํ์ธ์.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `select` (string, ์ ํ์ฌํญ): ๋ฐํํ ์์ฑ์ ์ผํ๋ก ๊ตฌ๋ถ๋ ๋ชฉ๋ก (์: 'id,name,position,visibility').
- `filter` (string, ์ ํ์ฌํญ): OData ํํฐ ํํ์ (์: "visibility eq 'Visible'"๋ก ์จ๊ฒจ์ง ์ํธ ์ ์ธ).
- `top` (integer, ์ ํ์ฌํญ): ๋ฐํํ ์ต๋ ์ํฌ์ํธ ์. ์ต์: 1, ์ต๋: 999
- `orderby` (string, ์ ํ์ฌํญ): ์ ๋ ฌ ์์ (์: 'position asc'๋ก ํญ ์์๋๋ก ๋ฐํ).
</Accordion>
<Accordion title="microsoft_sharepoint/create_excel_worksheet">
**์ค๋ช
:** SharePoint ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์ ์ฅ๋ Excel ํตํฉ ๋ฌธ์์ ์ ์ํฌ์ํธ(ํญ)๋ฅผ ๋ง๋ญ๋๋ค. ์ ์ํธ๋ ํญ ๋ชฉ๋ก์ ๋์ ์ถ๊ฐ๋ฉ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `name` (string, ํ์): ์ ์ํฌ์ํธ์ ์ด๋ฆ. ์ต๋ 31์. ์ฌ์ฉํ ์ ์๋ ๋ฌธ์: \ / * ? : [ ]. ํตํฉ ๋ฌธ์ ๋ด์์ ๊ณ ์ ํด์ผ ํฉ๋๋ค.
</Accordion>
<Accordion title="microsoft_sharepoint/get_excel_range_data">
**์ค๋ช
:** SharePoint์ ์ ์ฅ๋ Excel ์ํฌ์ํธ์ ํน์ ๋ฒ์์์ ์
๊ฐ์ ๊ฐ์ ธ์ต๋๋ค. ํฌ๊ธฐ๋ฅผ ๋ชจ๋ฅด๋ ์ํ์์ ๋ชจ๋ ๋ฐ์ดํฐ๋ฅผ ์ฝ์ผ๋ ค๋ฉด ๋์ get_excel_used_range๋ฅผ ์ฌ์ฉํ์ธ์.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `worksheet_name` (string, ํ์): ์ฝ์ ์ํฌ์ํธ(ํญ)์ ์ด๋ฆ. get_excel_worksheets์์ ๊ฐ์ ธ์ค์ธ์. ๋์๋ฌธ์๋ฅผ ๊ตฌ๋ถํฉ๋๋ค.
- `range` (string, ํ์): A1 ํ๊ธฐ๋ฒ์ ์
๋ฒ์ (์: 'A1:C10', 'A:C', '1:5', 'A1').
- `select` (string, ์ ํ์ฌํญ): ๋ฐํํ ์์ฑ์ ์ผํ๋ก ๊ตฌ๋ถ๋ ๋ชฉ๋ก (์: 'address,values,formulas,numberFormat,text').
</Accordion>
<Accordion title="microsoft_sharepoint/update_excel_range_data">
**์ค๋ช
:** SharePoint์ ์ ์ฅ๋ Excel ์ํฌ์ํธ์ ํน์ ๋ฒ์์ ๊ฐ์ ์๋๋ค. ๊ธฐ์กด ์
๋ด์ฉ์ ๋ฎ์ด์๋๋ค. values ๋ฐฐ์ด์ ํฌ๊ธฐ๋ ๋ฒ์ ํฌ๊ธฐ์ ์ ํํ ์ผ์นํด์ผ ํฉ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `worksheet_name` (string, ํ์): ์
๋ฐ์ดํธํ ์ํฌ์ํธ(ํญ)์ ์ด๋ฆ. get_excel_worksheets์์ ๊ฐ์ ธ์ค์ธ์. ๋์๋ฌธ์๋ฅผ ๊ตฌ๋ถํฉ๋๋ค.
- `range` (string, ํ์): ๊ฐ์ ์ธ A1 ํ๊ธฐ๋ฒ์ ์
๋ฒ์ (์: 'A1:C3'์ 3x3 ๋ธ๋ก).
- `values` (array, ํ์): 2D ๊ฐ ๋ฐฐ์ด (์
์ ํฌํจํ๋ ํ). A1:B2์ ์: [["Header1", "Header2"], ["Value1", "Value2"]]. ์
์ ์ง์ฐ๋ ค๋ฉด null์ ์ฌ์ฉํ์ธ์.
</Accordion>
<Accordion title="microsoft_sharepoint/get_excel_used_range_metadata">
**์ค๋ช
:** ์ค์ ์
๊ฐ ์์ด ์ํฌ์ํธ์์ ์ฌ์ฉ๋ ๋ฒ์์ ๋ฉํ๋ฐ์ดํฐ(์ฃผ์ ๋ฐ ํฌ๊ธฐ)๋ง ๋ฐํํฉ๋๋ค. ๋์ฉ๋ ํ์ผ์์ ๋ฐ์ดํฐ๋ฅผ ์ฒญํฌ๋ก ์ฝ๊ธฐ ์ ์ ์คํ๋ ๋์ํธ ํฌ๊ธฐ๋ฅผ ํ์
ํ๋ ๋ฐ ์ด์์ ์
๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `worksheet_name` (string, ํ์): ์ฝ์ ์ํฌ์ํธ(ํญ)์ ์ด๋ฆ. get_excel_worksheets์์ ๊ฐ์ ธ์ค์ธ์. ๋์๋ฌธ์๋ฅผ ๊ตฌ๋ถํฉ๋๋ค.
</Accordion>
<Accordion title="microsoft_sharepoint/get_excel_used_range">
**์ค๋ช
:** SharePoint์ ์ ์ฅ๋ ์ํฌ์ํธ์์ ๋ฐ์ดํฐ๊ฐ ํฌํจ๋ ๋ชจ๋ ์
์ ๊ฐ์ ธ์ต๋๋ค. 2MB๋ณด๋ค ํฐ ํ์ผ์๋ ์ฌ์ฉํ์ง ๋ง์ธ์. ๋์ฉ๋ ํ์ผ์ ๊ฒฝ์ฐ ๋จผ์ get_excel_used_range_metadata๋ฅผ ์ฌ์ฉํ ๋ค์ get_excel_range_data๋ก ์์ ์ฒญํฌ๋ก ์ฝ์ผ์ธ์.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `worksheet_name` (string, ํ์): ์ฝ์ ์ํฌ์ํธ(ํญ)์ ์ด๋ฆ. get_excel_worksheets์์ ๊ฐ์ ธ์ค์ธ์. ๋์๋ฌธ์๋ฅผ ๊ตฌ๋ถํฉ๋๋ค.
- `select` (string, ์ ํ์ฌํญ): ๋ฐํํ ์์ฑ์ ์ผํ๋ก ๊ตฌ๋ถ๋ ๋ชฉ๋ก (์: 'address,values,formulas,numberFormat,text,rowCount,columnCount').
</Accordion>
<Accordion title="microsoft_sharepoint/get_excel_cell">
**์ค๋ช
:** SharePoint์ Excel ํ์ผ์์ ํ๊ณผ ์ด ์ธ๋ฑ์ค๋ก ๋จ์ผ ์
์ ๊ฐ์ ๊ฐ์ ธ์ต๋๋ค. ์ธ๋ฑ์ค๋ 0 ๊ธฐ๋ฐ์
๋๋ค (ํ 0 = Excel ํ 1, ์ด 0 = ์ด A).
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `worksheet_name` (string, ํ์): ์ํฌ์ํธ(ํญ)์ ์ด๋ฆ. get_excel_worksheets์์ ๊ฐ์ ธ์ค์ธ์. ๋์๋ฌธ์๋ฅผ ๊ตฌ๋ถํฉ๋๋ค.
- `row` (integer, ํ์): 0 ๊ธฐ๋ฐ ํ ์ธ๋ฑ์ค (ํ 0 = Excel ํ 1). ์ ํจ ๋ฒ์: 0-1048575
- `column` (integer, ํ์): 0 ๊ธฐ๋ฐ ์ด ์ธ๋ฑ์ค (์ด 0 = A, ์ด 1 = B). ์ ํจ ๋ฒ์: 0-16383
- `select` (string, ์ ํ์ฌํญ): ๋ฐํํ ์์ฑ์ ์ผํ๋ก ๊ตฌ๋ถ๋ ๋ชฉ๋ก (์: 'address,values,formulas,numberFormat,text').
</Accordion>
<Accordion title="microsoft_sharepoint/add_excel_table">
**์ค๋ช
:** ์
๋ฒ์๋ฅผ ํํฐ๋ง, ์ ๋ ฌ ๋ฐ ๊ตฌ์กฐํ๋ ๋ฐ์ดํฐ ๊ธฐ๋ฅ์ด ์๋ ์์์ด ์ง์ ๋ Excel ํ
์ด๋ธ๋ก ๋ณํํฉ๋๋ค. ํ
์ด๋ธ์ ๋ง๋ค๋ฉด add_excel_table_row๋ก ๋ฐ์ดํฐ๋ฅผ ์ถ๊ฐํ ์ ์์ต๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `worksheet_name` (string, ํ์): ๋ฐ์ดํฐ ๋ฒ์๊ฐ ํฌํจ๋ ์ํฌ์ํธ์ ์ด๋ฆ. get_excel_worksheets์์ ๊ฐ์ ธ์ค์ธ์.
- `range` (string, ํ์): ํค๋์ ๋ฐ์ดํฐ๋ฅผ ํฌํจํ์ฌ ํ
์ด๋ธ๋ก ๋ณํํ ์
๋ฒ์ (์: 'A1:D10'์์ A1:D1์ ์ด ํค๋).
- `has_headers` (boolean, ์ ํ์ฌํญ): ์ฒซ ๋ฒ์งธ ํ์ ์ด ํค๋๊ฐ ํฌํจ๋์ด ์์ผ๋ฉด true๋ก ์ค์ . ๊ธฐ๋ณธ๊ฐ: true
</Accordion>
<Accordion title="microsoft_sharepoint/get_excel_tables">
**์ค๋ช
:** SharePoint์ ์ ์ฅ๋ ํน์ Excel ์ํฌ์ํธ์ ๋ชจ๋ ํ
์ด๋ธ์ ๋์ดํฉ๋๋ค. id, name, showHeaders ๋ฐ showTotals๋ฅผ ํฌํจํ ํ
์ด๋ธ ์์ฑ์ ๋ฐํํฉ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `worksheet_name` (string, ํ์): ํ
์ด๋ธ์ ๊ฐ์ ธ์ฌ ์ํฌ์ํธ์ ์ด๋ฆ. get_excel_worksheets์์ ๊ฐ์ ธ์ค์ธ์.
</Accordion>
<Accordion title="microsoft_sharepoint/add_excel_table_row">
**์ค๋ช
:** SharePoint ํ์ผ์ Excel ํ
์ด๋ธ ๋์ ์ ํ์ ์ถ๊ฐํฉ๋๋ค. values ๋ฐฐ์ด์ ํ
์ด๋ธ์ ์ด ์์ ๊ฐ์ ์์ ์์๋ฅผ ๊ฐ์ ธ์ผ ํฉ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `worksheet_name` (string, ํ์): ํ
์ด๋ธ์ด ํฌํจ๋ ์ํฌ์ํธ์ ์ด๋ฆ. get_excel_worksheets์์ ๊ฐ์ ธ์ค์ธ์.
- `table_name` (string, ํ์): ํ์ ์ถ๊ฐํ ํ
์ด๋ธ์ ์ด๋ฆ (์: 'Table1'). get_excel_tables์์ ๊ฐ์ ธ์ค์ธ์. ๋์๋ฌธ์๋ฅผ ๊ตฌ๋ถํฉ๋๋ค.
- `values` (array, ํ์): ์ ํ์ ์
๊ฐ ๋ฐฐ์ด๋ก ํ
์ด๋ธ ์์๋๋ก ์ด๋น ํ๋์ฉ (์: ["John Doe", "john@example.com", 25]).
</Accordion>
<Accordion title="microsoft_sharepoint/get_excel_table_data">
**์ค๋ช
:** SharePoint ํ์ผ์ Excel ํ
์ด๋ธ์์ ๋ชจ๋ ํ์ ๋ฐ์ดํฐ ๋ฒ์๋ก ๊ฐ์ ธ์ต๋๋ค. ์ ํํ ๋ฒ์๋ฅผ ์ ํ์๊ฐ ์์ผ๋ฏ๋ก ๊ตฌ์กฐํ๋ ํ
์ด๋ธ ์์
์ get_excel_range_data๋ณด๋ค ์ฝ์ต๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `worksheet_name` (string, ํ์): ํ
์ด๋ธ์ด ํฌํจ๋ ์ํฌ์ํธ์ ์ด๋ฆ. get_excel_worksheets์์ ๊ฐ์ ธ์ค์ธ์.
- `table_name` (string, ํ์): ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ธ์ฌ ํ
์ด๋ธ์ ์ด๋ฆ (์: 'Table1'). get_excel_tables์์ ๊ฐ์ ธ์ค์ธ์. ๋์๋ฌธ์๋ฅผ ๊ตฌ๋ถํฉ๋๋ค.
- `select` (string, ์ ํ์ฌํญ): ๋ฐํํ ์์ฑ์ ์ผํ๋ก ๊ตฌ๋ถ๋ ๋ชฉ๋ก (์: 'address,values,formulas,numberFormat,text').
</Accordion>
<Accordion title="microsoft_sharepoint/create_excel_chart">
**์ค๋ช
:** SharePoint์ ์ ์ฅ๋ Excel ์ํฌ์ํธ์ ๋ฐ์ดํฐ ๋ฒ์์์ ์ฐจํธ ์๊ฐํ๋ฅผ ๋ง๋ญ๋๋ค. ์ฐจํธ๋ ์ํฌ์ํธ์ ํฌํจ๋ฉ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `worksheet_name` (string, ํ์): ์ฐจํธ๋ฅผ ๋ง๋ค ์ํฌ์ํธ์ ์ด๋ฆ. get_excel_worksheets์์ ๊ฐ์ ธ์ค์ธ์.
- `chart_type` (string, ํ์): ์ฐจํธ ์ ํ (์: 'ColumnClustered', 'ColumnStacked', 'Line', 'LineMarkers', 'Pie', 'Bar', 'BarClustered', 'Area', 'Scatter', 'Doughnut').
- `source_data` (string, ํ์): ํค๋๋ฅผ ํฌํจํ A1 ํ๊ธฐ๋ฒ์ ์ฐจํธ ๋ฐ์ดํฐ ๋ฒ์ (์: 'A1:B10').
- `series_by` (string, ์ ํ์ฌํญ): ๋ฐ์ดํฐ ๊ณ์ด ๊ตฌ์ฑ ๋ฐฉ๋ฒ: 'Auto', 'Columns' ๋๋ 'Rows'. ๊ธฐ๋ณธ๊ฐ: 'Auto'
</Accordion>
<Accordion title="microsoft_sharepoint/list_excel_charts">
**์ค๋ช
:** SharePoint์ ์ ์ฅ๋ Excel ์ํฌ์ํธ์ ํฌํจ๋ ๋ชจ๋ ์ฐจํธ๋ฅผ ๋์ดํฉ๋๋ค. id, name, chartType, height, width ๋ฐ position์ ํฌํจํ ์ฐจํธ ์์ฑ์ ๋ฐํํฉ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `worksheet_name` (string, ํ์): ์ฐจํธ๋ฅผ ๋์ดํ ์ํฌ์ํธ์ ์ด๋ฆ. get_excel_worksheets์์ ๊ฐ์ ธ์ค์ธ์.
</Accordion>
<Accordion title="microsoft_sharepoint/delete_excel_worksheet">
**์ค๋ช
:** SharePoint์ ์ ์ฅ๋ Excel ํตํฉ ๋ฌธ์์์ ์ํฌ์ํธ(ํญ)์ ๋ชจ๋ ๋ด์ฉ์ ์๊ตฌ์ ์ผ๋ก ์ ๊ฑฐํฉ๋๋ค. ์คํ ์ทจ์ํ ์ ์์ต๋๋ค. ํตํฉ ๋ฌธ์์๋ ์ต์ ํ๋์ ์ํฌ์ํธ๊ฐ ์์ด์ผ ํฉ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `worksheet_name` (string, ํ์): ์ญ์ ํ ์ํฌ์ํธ์ ์ด๋ฆ. ๋์๋ฌธ์๋ฅผ ๊ตฌ๋ถํฉ๋๋ค. ์ด ์ํธ์ ๋ชจ๋ ๋ฐ์ดํฐ, ํ
์ด๋ธ ๋ฐ ์ฐจํธ๊ฐ ์๊ตฌ์ ์ผ๋ก ์ ๊ฑฐ๋ฉ๋๋ค.
</Accordion>
<Accordion title="microsoft_sharepoint/delete_excel_table">
**์ค๋ช
:** SharePoint์ Excel ์ํฌ์ํธ์์ ํ
์ด๋ธ์ ์ ๊ฑฐํฉ๋๋ค. ํ
์ด๋ธ ๊ตฌ์กฐ(ํํฐ๋ง, ์์, ํ
์ด๋ธ ๊ธฐ๋ฅ)๋ ์ญ์ ๋์ง๋ง ๊ธฐ๋ณธ ์
๋ฐ์ดํฐ๋ ๋ณด์กด๋ฉ๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
- `worksheet_name` (string, ํ์): ํ
์ด๋ธ์ด ํฌํจ๋ ์ํฌ์ํธ์ ์ด๋ฆ. get_excel_worksheets์์ ๊ฐ์ ธ์ค์ธ์.
- `table_name` (string, ํ์): ์ญ์ ํ ํ
์ด๋ธ์ ์ด๋ฆ (์: 'Table1'). get_excel_tables์์ ๊ฐ์ ธ์ค์ธ์. ํ
์ด๋ธ ์ญ์ ํ์๋ ์
์ ๋ฐ์ดํฐ๋ ์ ์ง๋ฉ๋๋ค.
</Accordion>
<Accordion title="microsoft_sharepoint/list_excel_names">
**์ค๋ช
:** SharePoint์ ์ ์ฅ๋ Excel ํตํฉ ๋ฌธ์์ ์ ์๋ ๋ชจ๋ ๋ช
๋ช
๋ ๋ฒ์๋ฅผ ๊ฐ์ ธ์ต๋๋ค. ๋ช
๋ช
๋ ๋ฒ์๋ ์
๋ฒ์์ ๋ํ ์ฌ์ฉ์ ์ ์ ๋ ์ด๋ธ์
๋๋ค (์: 'SalesData'๋ A1:D100์ ๊ฐ๋ฆฌํด).
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Excel ํ์ผ์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
</Accordion>
<Accordion title="microsoft_sharepoint/get_word_document_content">
**์ค๋ช
:** SharePoint ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์ ์ฅ๋ Word ๋ฌธ์(.docx)์์ ํ
์คํธ ๋ด์ฉ์ ๋ค์ด๋ก๋ํ๊ณ ์ถ์ถํฉ๋๋ค. SharePoint์์ Word ๋ฌธ์๋ฅผ ์ฝ๋ ๊ถ์ฅ ๋ฐฉ๋ฒ์
๋๋ค.
**๋งค๊ฐ๋ณ์:**
- `site_id` (string, ํ์): get_sites์์ ๊ฐ์ ธ์จ ์ ์ฒด SharePoint ์ฌ์ดํธ ์๋ณ์.
- `drive_id` (string, ํ์): ๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ID. ๋จผ์ get_drives๋ฅผ ํธ์ถํ์ฌ ์ ํจํ ๋๋ผ์ด๋ธ ID๋ฅผ ๊ฐ์ ธ์ค์ธ์.
- `item_id` (string, ํ์): SharePoint์ ์๋ Word ๋ฌธ์(.docx)์ ๊ณ ์ ์๋ณ์. list_files ๋๋ search_files์์ ๊ฐ์ ธ์ค์ธ์.
</Accordion>
</AccordionGroup>
## ์ฌ์ฉ ์์
### ๊ธฐ๋ณธ Microsoft SharePoint ์์ด์ ํธ ์ค์
```python
from crewai import Agent, Task, Crew
# Microsoft SharePoint ๊ธฐ๋ฅ์ ๊ฐ์ง ์์ด์ ํธ ์์ฑ
sharepoint_agent = Agent(
role="SharePoint ๊ด๋ฆฌ์",
goal="SharePoint ์ฌ์ดํธ, ๋ชฉ๋ก ๋ฐ ๋ฌธ์๋ฅผ ํจ์จ์ ์ผ๋ก ๊ด๋ฆฌ",
backstory="Microsoft SharePoint ๊ด๋ฆฌ ๋ฐ ์ฝํ
์ธ ๊ด๋ฆฌ ์ ๋ฌธ AI ์ด์์คํดํธ.",
apps=['microsoft_sharepoint'] # ๋ชจ๋ SharePoint ์์
์ ์ฌ์ฉํ ์ ์์ต๋๋ค
)
# ๋ชจ๋ ์ฌ์ดํธ ๊ฐ์ ธ์ค๊ธฐ ์์
get_sites_task = Task(
description="์ก์ธ์คํ ์ ์๋ ๋ชจ๋ SharePoint ์ฌ์ดํธ๋ฅผ ๋์ดํ์ธ์.",
agent=sharepoint_agent,
expected_output="ํ์ ์ด๋ฆ๊ณผ URL์ด ํฌํจ๋ SharePoint ์ฌ์ดํธ ๋ชฉ๋ก."
)
# ์์
์คํ
crew = Crew(
agents=[sharepoint_agent],
tasks=[get_sites_task]
)
crew.kickoff()
```
## ๋ฌธ์ ํด๊ฒฐ
### ์ผ๋ฐ์ ์ธ ๋ฌธ์
**์ธ์ฆ ์ค๋ฅ**
- Microsoft ๊ณ์ ์ด SharePoint ์ก์ธ์ค์ ํ์ํ ๊ถํ์ ๊ฐ์ง๊ณ ์๋์ง ํ์ธํ์ธ์ (์: `Sites.Read.All`, `Sites.ReadWrite.All`).
- OAuth ์ฐ๊ฒฐ์ด ํ์ํ ๋ชจ๋ ๋ฒ์๋ฅผ ํฌํจํ๋์ง ํ์ธํ์ธ์.
**์ฌ์ดํธ/๋ชฉ๋ก/ํญ๋ชฉ ID ๋ฌธ์ **
- ์ฌ์ดํธ, ๋ชฉ๋ก, ํญ๋ชฉ ID๊ฐ ์ฌ๋ฐ๋ฅธ์ง ๋ค์ ํ์ธํ์ธ์.
- ์ฐธ์กฐ๋ ๋ฆฌ์์ค๊ฐ ์กด์ฌํ๊ณ ์ก์ธ์คํ ์ ์๋์ง ํ์ธํ์ธ์.
### ๋์ ๋ฐ๊ธฐ
<Card
title="๋์์ด ํ์ํ์ ๊ฐ์?"
icon="headset"
href="mailto:support@crewai.com"
>
Microsoft SharePoint ํตํฉ ์ค์ ๋๋ ๋ฌธ์ ํด๊ฒฐ์ ๋ํ ์ง์์ด ํ์ํ์๋ฉด
์ง์ํ์ ๋ฌธ์ํ์ธ์.
</Card>