Skip to content
Back to skills

Get Metadata

ASecurity

Retrieve metadata attached to a Note or Collection

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 6, 2026
development

Security analysis

A100/100

Scanned June 6, 2026

npx -y skills add bdambrosio/Cognitive_workbench --skill get-metadata --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Get Metadata?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Get Metadata
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bdambrosio-get-metadata/badge)](https://www.skillsdirectory.com/skills/bdambrosio-get-metadata)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: get-metadata
type: primitive
description: Retrieve metadata attached to a Note or Collection
---

# Get-Metadata

## INPUT CONTRACT

- `target` (required): `$variable`, Note/Collection ID, or name
- `out` (optional): `$variable` — bound to the metadata Note ID if metadata exists

**REQUIREMENTS:**
- Target resource must exist

## BEHAVIOR

Returns the metadata text associated with the target Note or Collection. Metadata is stored transparently by the system (e.g., search-web attaches source URLs as metadata).

- If metadata exists: returns the metadata content as text
- If no metadata exists: returns empty string
- If `out` is provided: binds the metadata Note ID to the variable

## EXAMPLES

```json
{"type": "get-metadata", "target": "$search_result", "out": "$meta"}
```
```json
{"type": "get-metadata", "target": "Note_123", "out": "$note_meta"}
```

## OUTPUT

Returns `success` with metadata text as value. Use `get_text("$meta")` in code blocks to read the content.

## FAILURE SEMANTICS

- Target resource not found
- Missing `target` parameter

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…