prune_paper_figures
Removes all figure files from a paper's figures directory except those specified in the 'keep' list, preserving only core architecture or result plots selected by caption analysis.
Instructions
vault의 papers/<slug>/figures/ 에서 keep에 명시된 파일만 남기고 나머지 삭제
(ADR-015, ADR-016).
LLM이 extract_paper_figures 결과의 caption을 보고 핵심 architecture / 결과
plot만 선별 → 선별 결과를 keep으로 넘겨 호출. 나머지 figure는 디스크에서 제거.
Args: paper_id: arXiv ID (정규화 검사용). keep: 남길 figure의 파일 식별자 리스트. "figures/fig_1.png" 또는 "fig_1.png" 둘 다 허용. 빈 리스트면 모든 figure 삭제. slug: vault 디렉토리명 (title-slug). 비우면 arxiv_id 사용 (legacy 호환).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paper_id | Yes | ||
| keep | Yes | ||
| slug | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |