calling-project-file-api
БесплатноЗапускает вложенные скриптыНе проверенList, upload, download, get, and delete files in an Azure AI Foundry project via its data-plane Files API. Use when an agent needs to manage project files…
от microsoft-foundry★ 21 звезда на GitHubОб этом скилле
Calling Project File API
Overview
Perform file operations against an Azure AI Foundry project's data-plane Files API
({PROJECT_ENDPOINT}/files). Use the bundled scripts/file_api.py — it is stdlib-only
(no pip installs), so it runs on a bare Python image such as a harness sandbox.
Prerequisites
Provide two things (via env vars or CLI flags):
PROJECT_ENDPOINT—https://<resource>.services.ai.azure.com/api/projects/<project>A token — resolved automatically in this order:
--tokenflag orPROJECT_API_TOKEN/AZURE_AI_TOKENenv varazure-identityDefaultAzureCredential(managed identity / sandbox identity /az login)az account get-access-tokenCLI fallback
Token scope is
https://ai.azure.com/.default. In a managed harness the sandbox identity is used automatically viaDefaultAzureCredential— no token needs to be passed.
Usage
export PROJECT_ENDPOINT="https://<resource>.services.ai.azure.com/api/projects/<project>"
python scripts/file_api.py list
python scripts/file_api.py upload ./notes.txt --purpose assistants # -> returns { "id": "assistant-...", ... }
python scripts/file_api.py get assistant-abc123
python scripts/file_api.py download assistant-abc123 --out ./notes.txt # omit --out to stream to stdout
python scripts/file_api.py delete assistant-abc123
All commands print the JSON response (download writes bytes). Non-2xx responses print
ERROR: HTTP <code> ... with the server body and exit non-zero.
Key rules (enforced by the API)
purposeis required on upload:assistants(default) |batch|fine-tune|vision.- File extension allow-list — uploads with an unsupported extension fail with HTTP 400.
Notably
.jsonlis rejected; rename batch/fine-tune data to.jsonor.txtfirst. Allowed:c cpp css csv doc docx gif go html java jpeg jpg js json md pdf php pkl png pptx py rb tar tex ts txt webp xlsx xml zip. - api-version is mandatory and defaults to
2025-05-15-preview(override with--api-version). - If
listreturns 401/403, the caller identity lacks a data-plane role on the project — report that plainly instead of retrying.
Reference
For endpoint details, response shapes, raw curl equivalents, and the full list of
gotchas learned from live testing, see references/files-api.md.
Установить calling-project-file-api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл calling-project-file-api?
List, upload, download, get, and delete files in an Azure AI Foundry project via its data-plane Files API. Use when an agent needs to manage project files (list files, upload a file, download file content, get file metadata, delete a file) against a project endpoint such as an ai.azure.com services projects URL, including from inside a managed harness or sandbox.
Как установить скилл calling-project-file-api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл calling-project-file-api запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic