Teams Photo Export logo

Teams Photo Export

Community
aktsmm
teams-photo-export

Export photos and inline images from Microsoft Teams chats or channel threads into dated local folders. Use when the user shares a Teams chat URL, channel/thread URL, Teams title, or asks to save/download/extract Teams photos/images. Triggers on "Teams photos", "Teams images", "Teams画像保存", "Teams写真抽出", "チャット画像", "Teams URLから画像".

Overview

Publisheraktsmm
RepositoryAgent-Skills
Skill nameteams-photo-export
Stars
27
Forks
5
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by aktsmm on GitHub. Read the source before you install it.

Installation

Install the Teams Photo Export AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/aktsmm/Agent-Skills/tree/master/teams-photo-export
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aktsmm/Agent-Skills.git /tmp/Agent-Skills
mkdir -p .claude/skills
cp -r /tmp/Agent-Skills/teams-photo-export .claude/skills/teams-photo-export
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Teams Photo Export in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Teams Photo Export on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Teams Photo Export is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Teams Photo Export

Extract images from Microsoft Teams conversations into organized local folders.

When to Use

  • User provides a Teams chat URL, channel/thread URL, or chat title and wants images/photos saved.
  • User asks to export, extract, download, collect, or organize Teams photos/images.
  • User wants the output under the configured work-photo folder.
  • Manual invocation only (/teams-photo-export); the skill reads private chat content, so it is never started implicitly.

Default Output Root

Resolve the output root in this order: --output-root, the user environment variable TEAMS_IMAGE_EXPORT_ROOT, then <user pictures folder>\Teams Photo Export. Ask the user when the destination matters (for example a cloud-synced work-photo folder), and set TEAMS_IMAGE_EXPORT_ROOT only with their agreement.

Output folders should be named:

text
YYYY-MM-DD_<Teams chat/thread/project title>

Sanitize Windows-invalid characters: \ / : * ? " < > |.

Strategy

Prefer the no-admin path first.

  1. Teams Web CDP path (default): open Teams Web in a dedicated Edge profile, attach Playwright over CDP, scroll the conversation, and save visible img[alt="メディア"] / img[alt="Media"] blob images.
  2. ASM full-size enhancement (not implemented in the script): capturing asm.skype.com/.../views/imgpsh_fullsize* responses would give originals instead of preview blobs; today the script saves the rendered blob images only.
  3. Graph hostedContents path (only if consent works): use Chat.Read or ChannelMessage.Read.All and hostedContents/$value for original-quality download.
  4. SPO/OneDrive attachment path: use when attachments[].contentUrl points to a file in SharePoint/OneDrive. Inline pasted images usually are not stored there.

Do not rely on native Teams UI Automation as the main path; it is slower and less stable than Teams Web CDP.

Workflow

  1. Parse the input.
    • Chat URL example: extract 19:...@thread.v2 as chatId.
    • Channel URLs may need Teams Web navigation; do not assume Graph channel IDs are available.
    • If title search returns multiple candidates, ask the user to choose.
  2. Create a dry-run plan.
    • Source URL/title
    • Output root and final folder
    • Date range or scroll limit
    • Expected naming pattern
  3. Ask for confirmation before a large export.
  4. Run scripts/export_visible_teams_images.py for the Teams Web path.
  5. Verify saved file count and list the output folder.

Script Usage

Start or reuse an Edge instance with CDP:

powershell
python "%USERPROFILE%\.copilot\skills\teams-photo-export\scripts\export_visible_teams_images.py" `
  --url "https://teams.microsoft.com/l/chat/..." `
  --title "Project or chat title" `
  --date "2026-07-02"

Useful options:

text
--output-root <path>     Override TEAMS_IMAGE_EXPORT_ROOT
--max-scrolls <n>        Limit virtual-scroll attempts
--dry-run                Show target folder and detected images without writing
--keep-browser-open      Do not close the dedicated Edge

Safety Rules

  • Only export content the signed-in user can access.
  • Never send, forward, or share exported images automatically.
  • Keep outbound summaries generic; images and chat metadata are private user data.
  • Do not log bearer tokens or authenticated Graph URLs.
  • Prefer a dedicated Edge user-data-dir so regular browser sessions are not disturbed.
  • Do not overwrite existing files; use hashes to skip duplicates and sequence numbers for new files.

References

  • See references/implementation-notes.md for Graph/SPO/WebView2 tradeoffs and source URLs.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Teams Photo Export AI skill do?

Export photos and inline images from Microsoft Teams chats or channel threads into dated local folders. Use when the user shares a Teams chat URL, channel/thread URL, Teams title, or asks to save/download/extract Teams photos/images. Triggers on "Teams photos", "Teams images", "Teams画像保存", "Teams写真抽出", "チャット画像", "Teams URLから画像".

Why use Teams Photo Export on TypingMind?

Because you install it once and use it with any model. Teams Photo Export is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Teams Photo Export in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/aktsmm/Agent-Skills/tree/master/teams-photo-export. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Teams Photo Export?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Teams Photo Export?

As many as you like. As long as a model supports skills, you can use Teams Photo Export with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Teams Photo Export AI skill free?

It is published on GitHub by aktsmm. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇