Use this skill to build reliable tool context whenever command output will be
analyzed by the model and correctness matters. Capture once, query from
artifacts, and return compact answers without copying raw payloads into model
context.
Use Sift to establish reliable tool context when any of these are true:
querying).
pagination.next.kind=="command").small payloads).
Use direct CLI only when all of these are true:
sift-gateway run --json -- <command>
artifact_id plus a short summary in prompt context. pagination.next.kind=="command", continue with:
sift-gateway run --json --continue-from <artifact_id> -- <next-command-with-next_params-applied>
sift-gateway code --json <artifact_id> '$' --code "def run(data, schema, params): return [{'id': row.get('id'), 'status': row.get('status')} for row in data[:20]]"
run behavior uses canonical root path $; use $ for follow-upcode queries.
response_mode=="schema_ref" and schemas are present, use schema root_path as the source of truth.
sample_item as a preview row only.jq '.[0]' (or equivalent "first-item" shortcuts) to infer schemaor root path. Many payloads are object-wrapped, have multiple candidate roots,
or include heterogeneous rows where first-item heuristics are misleading.
sample_item is emitted only when Sift can verify consistent item shape across the resolved list. If sample_item is absent,
inspect schemas; for current run captures, schema root_path should be
$.
sample_item_text_truncated is true, treat long text fields as truncatedpreviews and confirm details with a focused code query.
sift-gateway code defaults to --scope all_related; start with --scope single for anchor-only analysis and widen scope only when needed.
run(data, schema, params); move to `run(artifacts, schemas,params)` only when cross-artifact joins are required.
pagination.retrieval_status == COMPLETE.共 1 个版本