コンテンツにスキップ
日本語

備考

Pixling は Mac App Store 公開準備中です。リリース通知は pixling.app のウェイトリストから登録できます。

備考は、アセット・机の住人・エージェントのセッションに付けられる任意のローカルメモです。ユーザーは Pixling の 備考 で、この子、ずかん、そしてセッションが結びついているときは 会話 の行から内容を見て編集できます。

note.get と note.set は、次の 3 つのスコープのいずれかを対象にします。

scope to 備考の持ち主
asset ライブラリの No.N または正確な名前 アセット(そのコピーすべてで共有されます)
entity 住人 1 体(auto や everyone は不可) 机の上にいるその住人
session client:<namespace>/<key> のみ resident.ensure の結びつき(保持中・しまった結びつきを含む)

それ以外の scope と to の組み合わせは、to について invalidArguments で拒否されます。

MCP: pixling_note_get と pixling_note_set

Section titled “MCP: pixling_note_get と pixling_note_set”
MCP リクエスト(pixling_note_set)
{
"scope": "session",
"to": "client:my-agent/conversation-1",
"note": "Reviews pull requests"
}
MCP の結果
{
"scope": "session",
"target": "client:my-agent/conversation-1",
"note": "Reviews pull requests"
}
  • note.get:scope と to が必要です。
  • note.set:scope、to、文字列の note が必要です。空文字を渡すと備考を消去します。備考全体を置き換えるため、破壊的(destructive)のアノテーションが付いています。
  • 返却形式:どちらも {scope, target, note} を返します。target は解決された識別子(アセット ID、住人のエンティティ ID、または client:<namespace>/<key>)です。

上限と権限:

  • 文字数上限:最大 200 文字です。バイト数や Unicode コードポイント数ではなく拡張書記素クラスタ単位で数えるため、日本語の 1 文字や合成絵文字も 1 と数えます。
  • 使える文字:改行とタブは使えます。ほかの制御文字は拒否されます。
  • エラーと所有権:存在しない宛先は targetNotFound になります。別のクライアントに結びついた住人の entity 備考を書き換える際は、通常の結びつきの規則に従います。

住人の呼び出し・結びつけ・迎え入れのタイミングで備考を添えることもできます。

操作のフィールド 設定される備考 CLI フラグ
resident.summon.note 新しい住人の entity 備考 resident summon --note
resident.ensure.note session 備考 resident ensure --note
resident.ensure.initial.note 新しい住人の entity 備考 resident ensure --initial-note、または --initial の JSON 内の initial.note(併用不可)
import.adopt.note 初回迎え入れ時の asset 備考 import adopt --note
ターミナル
pixling note get --scope entity --to 'No.7#1'
pixling note set --scope session --to 'client:my-agent/conversation-1' --note 'Reviews pull requests'
pixling note set --scope asset --to No.7 --note ''

--scope と --to は scope と to に対応し、note set には --note が必須です。人向けの出力は 1 行(SCOPE TARGET: NOTE)、--json は {scope, target, note} のドキュメントを出力します。