Skip to main content

attr

Block custom-attribute operations. Actions: get(id), set(id, attrs object), batch-get(ids comma-separated).

소스 정보

저장소
Achuan-2/siyuan-plugin-copilot
최근 소스 활동
2026년 7월 11일 16:41
감지된 SKILL.md 언어
중국어
스타
159
포크
34

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
attr
description
Block custom-attribute operations. Actions: get(id), set(id, attrs object), batch-get(ids comma-separated).
# attr ## action: get 获取指定块的自定义属性及系统属性 ### 参数说明 | 参数名 | 类型 | 必填 | 描述 | 可选值 | | --- | --- | --- | --- | --- | | `id` | `string` | 是 | Block ID | - | ### 使用示例 ```javascript attr({ "action": "get", "id": "20200812220555-w7m19sc" }) ``` --- ## action: set 设置指定块的属性值(如自定义属性、命名、别名、备注等) ### 参数说明 | 参数名 | 类型 | 必填 | 描述 | 可选值 | | --- | --- | --- | --- | --- | | `id` | `string` | 是 | Block ID | - | | `attrs` | `object` | 是 | Attribute key-value pairs (for set). Common attributes: - icon: emoji hex codepoint like "1f4ca\ | - | ### 使用示例 ```javascript attr({ "action": "set", "id": "20200812220555-w7m19sc", "attrs": "..." }) ``` --- ## action: batch-get 批量获取多个块的自定义属性 (.) ### 参数说明 | 参数名 | 类型 | 必填 | 描述 | 可选值 | | --- | --- | --- | --- | --- | | `ids` | `string` | 是 | Comma-separated block IDs (for batch-get) | - | ### 使用示例 ```javascript attr({ "action": "batch-get", "ids": "..." }) ``` ---
GitHub에서 보기