cfdf515228
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2.1 KiB
2.1 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | params | output | tested | tests | test_file_path | file_path | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| metabase_create_document_comment | function | py | infra | 1.0.0 | impure | def metabase_create_document_comment(client: MetabaseClient, document_id: int, content: dict, *, child_target_id: str | None = None, parent_comment_id: int | None = None) -> dict | Crea un comentario en un document. Soporta anclaje a bloque concreto (via UUID de _id) y respuestas en thread (via parent_comment_id). Endpoint: POST /api/comment. |
|
false | error_go_core |
|
|
dict: comentario creado con id, created_at, creator, reactions=[], is_resolved=False | false | python/functions/metabase/documents.py |
Ejemplo
# Comentario top-level
metabase_create_document_comment(client, 29, {
"type": "doc",
"content": [{"type": "paragraph", "content": [
{"type": "text", "text": "Deberiamos anadir un paso para configurar Slack"}
]}]
})
# Respuesta en thread
metabase_create_document_comment(client, 29, content=reply_tree,
parent_comment_id=1)
# Anclado a un bloque concreto del documento
metabase_create_document_comment(client, 29, content=tree,
child_target_id="48f9a7a4-79a0-a282-03a1-ffe2f76b9106")
Notas
target_type se fija internamente a "document" (unico valor aceptado por la API en v0.59).
El content sigue el mismo schema ProseMirror que los documents (ver whitelist en metabase_validate_document_payload).